diff --git a/build-data/BuildData.groovy b/build-data/BuildData.groovy index 1aaee378..4146749c 100755 --- a/build-data/BuildData.groovy +++ b/build-data/BuildData.groovy @@ -135,7 +135,7 @@ if (_args.mode == /no-index/) { // BUILD moviedb index def omdb = new TreeMap() ('omdbMovies.txt' as File).splitEachLine(/\t/, 'Windows-1252'){ line -> - if (line.length > 11 && line[0] ==~ /\d+/ && line[3] ==~ /\d{4}/) { + if (line.size() > 11 && line[0] ==~ /\d+/ && line[3] ==~ /\d{4}/) { def imdbid = line[1].substring(2).toInteger() def name = line[2].replaceAll(/\s+/, ' ').trim() def year = line[3].toInteger() diff --git a/build-data/build-data-import.sh b/build-data/build-data-import.sh index 19d90972..8ca63db2 100755 --- a/build-data/build-data-import.sh +++ b/build-data/build-data-import.sh @@ -26,5 +26,3 @@ fetch osdb.txt 'http://www.opensubtitles.org/addons/export_movie.php' +5 fetch anime-list.xml 'https://raw.githubusercontent.com/ScudLee/anime-lists/master/anime-list.xml' +5 fetch anime-movieset-list.xml 'https://raw.githubusercontent.com/ScudLee/anime-lists/master/anime-movieset-list.xml' +5 - -echo 'DONE'