* update build-data filter

This commit is contained in:
Reinhard Pointner 2015-11-12 12:20:25 +00:00
parent 0659a1fcc8
commit a3db0af585
1 changed files with 1 additions and 1 deletions

View File

@ -124,7 +124,7 @@ new File('omdbMovies.txt').eachLine('Windows-1252'){
def rating = tryQuietly{ line[12].toFloat() } ?: 0
def votes = tryQuietly{ line[13].replaceAll(/\D/, '').toInteger() } ?: 0
if (!(genres =~ /Short/ || votes <= 50 || rating <= 2) && ((year >= 1970 && (runtime =~ /(\d.h)|(\d{2,3}.min)/ || votes >= 500)) || (year >= 1950 && votes >= 20000))) {
if (!(genres =~ /Short/ || votes <= 100 || rating <= 2) && ((year >= 1970 && (runtime =~ /(\d.h)|(\d{2,3}.min)/ || votes >= 1000)) || (year >= 1950 && votes >= 20000))) {
omdb << [imdbid.pad(7), name, year]
}
}