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:
parent
acbe82aa53
commit
93b5a9d875
@ -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
|
||||
@ -97,7 +96,6 @@ parallel(osdb.collect{ row ->
|
||||
}
|
||||
}
|
||||
}
|
||||
}, 20)
|
||||
|
||||
// save updated imdb data
|
||||
imdb.collect{ it.join('\t') }.sort().join('\n').saveAs(imdb_tsv)
|
||||
|
Loading…
Reference in New Issue
Block a user