mirror of
https://github.com/mitb-archive/filebot
synced 2024-11-13 12:55:00 -05:00
Fix multi-scale updates
This commit is contained in:
parent
b20f6932e4
commit
8c9e1787b4
@ -55,17 +55,18 @@ void build(ids, section, db, query) {
|
||||
def files = []
|
||||
|
||||
ids.each{ id ->
|
||||
def original = getOriginalPath(section, id)
|
||||
|
||||
if (original.length() == 0 && original.exists() && System.currentTimeMillis() - original.lastModified() > 90 * 24 * 60 * 60 * 1000) {
|
||||
log.finest "[SKIP] $id"
|
||||
return
|
||||
}
|
||||
|
||||
scaleFactor.each{ scale ->
|
||||
def original = getOriginalPath(section, id)
|
||||
def thumb = getThumbnailPath(section, id, scale)
|
||||
|
||||
if (thumb.exists()) {
|
||||
log.finest "[SKIP] $id @ $scale"
|
||||
return
|
||||
}
|
||||
|
||||
if (original.length() == 0 && original.exists() && System.currentTimeMillis() - original.lastModified() > 90 * 24 * 60 * 60 * 1000) {
|
||||
log.finest "[SKIP] $id @ $scale"
|
||||
log.finest "[SKIP] $id (@${scale}x)"
|
||||
return
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user