From 4217f1a479f1b8eb46404e8a7558041be6442447 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Wed, 20 Jul 2016 02:55:20 +0800 Subject: [PATCH] Discover recent/popular movies --- build-data/BuildData.groovy | 2 +- build-data/build-data-import.sh | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) 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'