Discover recent/popular movies

This commit is contained in:
Reinhard Pointner 2016-07-20 02:55:20 +08:00
parent ee05a44a99
commit 4217f1a479
2 changed files with 1 additions and 3 deletions

View File

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

View File

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