diff --git a/BuildData.groovy b/BuildData.groovy index a23be3be..d758a88a 100644 --- a/BuildData.groovy +++ b/BuildData.groovy @@ -81,21 +81,23 @@ osdb_tsv.getText('UTF-8').eachLine{ osdb = osdb.findAll{ it[0] <= 9999999 && it[2] >= 1930 && it[1] =~ /^[A-Z0-9]/ && it[1] =~ /[\p{Alpha}]{3}/ }.collect{ [it[0].pad(7), it[1], it[2]] } -osdb.each{ row -> - // update new data - if (!imdb_ids.contains(row[0])) { - // get original title and english title - [Locale.ROOT, Locale.ENGLISH].collect{ locale -> net.sourceforge.filebot.WebServices.IMDb.getMovieDescriptor(row[0] as int, locale) }.unique{ it as String }.each { mov -> - if (mov != null && mov.name.length() > 0 && mov.year > 0) { - println "Adding $mov" - imdb << [row[0], mov.name, mov.year] - } else { - println "Blacklisting $row" - imdb << [row[0], null] +parallel(osdb.collect{ row -> + return { + // update new data + if (!imdb_ids.contains(row[0])) { + // get original title and english title + [Locale.ROOT, Locale.ENGLISH].collect{ locale -> net.sourceforge.filebot.WebServices.IMDb.getMovieDescriptor(row[0] as int, locale) }.unique{ it as String }.each { mov -> + if (mov != null && mov.name.length() > 0 && mov.year > 0) { + println "Adding $mov" + imdb << [row[0], mov.name, mov.year] + } else { + println "Blacklisting $row" + imdb << [row[0], null] + } } } } -} +}, 20) // save updated imdb data imdb.collect{ it.join('\t') }.sort().join('\n').saveAs(imdb_tsv) diff --git a/lib/groovy.jar b/lib/groovy.jar index 231e550d..0bb55dde 100644 Binary files a/lib/groovy.jar and b/lib/groovy.jar differ diff --git a/website/update.xml b/website/update.xml index cb3eff49..43fa7e47 100644 --- a/website/update.xml +++ b/website/update.xml @@ -1,10 +1,10 @@ - + FileBot 3.1 - 1292 + 1296 New updates available - FileBot 3.1
+ FileBot 3.1 (r1296)
This release features:
+ Enhanced TheTVDB series lookup
+ Improved episode matching