From dfce5bf37e0282d937ac5b40e14e31ba7374b1a5 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Fri, 31 Oct 2014 16:25:02 +0000 Subject: [PATCH] * fix sanity checks --- BuildData.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BuildData.groovy b/BuildData.groovy index 4837b205..831c2d1b 100644 --- a/BuildData.groovy +++ b/BuildData.groovy @@ -117,7 +117,7 @@ new File('omdb.txt').eachLine('Windows-1252'){ def rating = tryQuietly{ line[12].toFloat() } ?: 0 def votes = tryQuietly{ line[13].replaceAll(/\D/, '').toInteger() } ?: 0 - if (!(genres =~ /Short/ || votes <= 100 || rating <= 2) && ((year >= 1970 && (runtime =~ /(\d.h)|(\d{3}.min)/ || votes >= 5000)) || (year >= 1950 && votes >= 20000))) { + if (!(genres =~ /Short/ || votes <= 50 || rating <= 2) && ((year >= 1970 && (runtime =~ /(\d.h)|(\d{3}.min)/ || votes >= 500)) || (year >= 1950 && votes >= 20000))) { omdb << [imdbid.pad(7), name, year] } }