* fix for "90 min" time format
This commit is contained in:
parent
0b69adbbc9
commit
0cab8b6e91
|
@ -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{3}.min)/ || votes >= 500)) || (year >= 1950 && votes >= 20000))) {
|
||||
if (!(genres =~ /Short/ || votes <= 50 || rating <= 2) && ((year >= 1970 && (runtime =~ /(\d.h)|(\d{2,3}.min)/ || votes >= 500)) || (year >= 1950 && votes >= 20000))) {
|
||||
omdb << [imdbid.pad(7), name, year]
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue