diff --git a/build-data/BuildArtwork.groovy b/build-data/BuildArtwork.groovy index b738865d..a778b1a6 100755 --- a/build-data/BuildArtwork.groovy +++ b/build-data/BuildArtwork.groovy @@ -41,7 +41,12 @@ void build(ids, section, db, query) { def original = getOriginalPath(section, id) def thumb = getThumbnailPath(section, id) - if (thumb.exists() || original.length() == 0 && original.exists()) { + if (thumb.exists()) { + log.finest "[SKIP] $id" + return + } + + if (original.length() == 0 && original.exists() && System.currentTimeMillis() - original.lastModified() < 90 * 24 * 60 * 60 * 1000) { log.finest "[SKIP] $id" return }