From f8f968243b07e0005c54875e7b7dd3c0b72a034b Mon Sep 17 00:00:00 2001 From: Nat Quayle Nelson Date: Fri, 11 Aug 2023 13:16:22 -0600 Subject: [PATCH] opengameart fallback to author field --- src/hollywoo_sourcer/OpenGameArtMain_.kiss | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/hollywoo_sourcer/OpenGameArtMain_.kiss b/src/hollywoo_sourcer/OpenGameArtMain_.kiss index 28b882e..cb9ec3b 100644 --- a/src/hollywoo_sourcer/OpenGameArtMain_.kiss +++ b/src/hollywoo_sourcer/OpenGameArtMain_.kiss @@ -16,6 +16,10 @@ (doFor i (range fieldLabelDivs.length) (when (= "Copyright/Attribution Notice: " .innerText (fieldLabelDivs.item i)) (return (fieldLabelDivs.item i)))) + // If there is no explicit Copyright notice, get the author: + (doFor i (range fieldLabelDivs.length) + (when (= "Author: " .innerText (fieldLabelDivs.item i)) + (return (fieldLabelDivs.item i)))) null } creditsHeadingDiv (getCreditsHeadingDiv)