1
0
mirror of https://github.com/mitb-archive/filebot synced 2025-03-10 06:20:27 -04:00

Check for updates every 90 days

This commit is contained in:
Reinhard Pointner 2019-05-04 19:38:26 +07:00
parent 1c9440ed3c
commit e6c5d5fb14

View File

@ -51,6 +51,7 @@ void build(ids, section, db, query) {
return
}
if (original.length() == 0 || !original.exists()) {
def artwork = retry(2, 60000) {
try {
return db.getArtwork(id, query, Locale.ENGLISH)
@ -60,8 +61,7 @@ void build(ids, section, db, query) {
}
}
if (!original.exists()) {
artwork.findResult{ a ->
artwork?.findResult{ a ->
return retry(2, 60000) {
try {
log.fine "Fetch $a"
@ -74,8 +74,9 @@ void build(ids, section, db, query) {
}
// create empty placeholder if there is no artwork
if (!original.exists()) {
if (original.length() == 0 || !original.exists()) {
original.createNewFile()
original.setLastModified(System.currentTimeMillis())
}
ls original