1
0
mirror of https://github.com/mitb-archive/filebot synced 2025-01-11 13:58:16 -05:00

* work around what looks to be a bug in the groovy script engine

This commit is contained in:
Reinhard Pointner 2012-11-03 15:18:17 +00:00
parent acbe82aa53
commit 93b5a9d875

View File

@ -81,8 +81,7 @@ 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]] }
parallel(osdb.collect{ row ->
return {
osdb.each{ row ->
// update new data
if (!imdb_ids.contains(row[0])) {
// get original title and english title
@ -96,8 +95,7 @@ parallel(osdb.collect{ row ->
}
}
}
}
}, 20)
}
// save updated imdb data
imdb.collect{ it.join('\t') }.sort().join('\n').saveAs(imdb_tsv)