mirror of
https://github.com/mitb-archive/filebot
synced 2024-08-13 17:03:45 -04:00
Check for updates every 90 days
This commit is contained in:
parent
1c9440ed3c
commit
e6c5d5fb14
@ -51,17 +51,17 @@ void build(ids, section, db, query) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
def artwork = retry(2, 60000) {
|
if (original.length() == 0 || !original.exists()) {
|
||||||
try {
|
def artwork = retry(2, 60000) {
|
||||||
return db.getArtwork(id, query, Locale.ENGLISH)
|
try {
|
||||||
} catch (FileNotFoundException e) {
|
return db.getArtwork(id, query, Locale.ENGLISH)
|
||||||
log.warning "[ARTWORK NOT FOUND] $e"
|
} catch (FileNotFoundException e) {
|
||||||
return null
|
log.warning "[ARTWORK NOT FOUND] $e"
|
||||||
|
return null
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if (!original.exists()) {
|
artwork?.findResult{ a ->
|
||||||
artwork.findResult{ a ->
|
|
||||||
return retry(2, 60000) {
|
return retry(2, 60000) {
|
||||||
try {
|
try {
|
||||||
log.fine "Fetch $a"
|
log.fine "Fetch $a"
|
||||||
@ -74,8 +74,9 @@ void build(ids, section, db, query) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// create empty placeholder if there is no artwork
|
// create empty placeholder if there is no artwork
|
||||||
if (!original.exists()) {
|
if (original.length() == 0 || !original.exists()) {
|
||||||
original.createNewFile()
|
original.createNewFile()
|
||||||
|
original.setLastModified(System.currentTimeMillis())
|
||||||
}
|
}
|
||||||
|
|
||||||
ls original
|
ls original
|
||||||
|
Loading…
Reference in New Issue
Block a user