Discover recent/popular movies
This commit is contained in:
parent
ee05a44a99
commit
4217f1a479
|
@ -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()
|
||||
|
|
|
@ -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'
|
||||
|
|
Loading…
Reference in New Issue