* revert to Groovy 2.0.2 to fix scripting compatibility issues

This commit is contained in:
Reinhard Pointner 2012-11-05 09:41:48 +00:00
parent 46f5e98c55
commit 6879a1336e
3 changed files with 17 additions and 15 deletions

View File

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

Binary file not shown.

View File

@ -1,10 +1,10 @@
<?xml version="1.0" encoding="UTF-8" ?>
<?xml version="1.0" encoding="UTF-8"?>
<update>
<name>FileBot 3.1</name>
<revision>1292</revision>
<revision>1296</revision>
<title>New updates available</title>
<message><![CDATA[<html>
<b>FileBot 3.1</b><br>
<b>FileBot 3.1 (r1296)</b><br>
This release features:<br>
+ Enhanced TheTVDB series lookup<br>
+ Improved episode matching<br>