1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-11-14 05:15:03 -05:00

Check for updates every 90 days

This commit is contained in:
Reinhard Pointner 2019-05-04 17:46:49 +07:00
parent 3acc1a947c
commit 2078bcc1b0

View File

@ -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
}