From 565b951862dc90e0286dedff4a9bfa255756fb72 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Fri, 26 Sep 2014 16:41:42 +0000 Subject: [PATCH] * fix & ignore 1970-1975 style series patterns --- BuildData.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BuildData.groovy b/BuildData.groovy index 3db1247f..e5dacaa7 100644 --- a/BuildData.groovy +++ b/BuildData.groovy @@ -108,7 +108,7 @@ def csv(f, delim, keyIndex, valueIndex) { def omdb = [] new File('omdb.txt').eachLine('Windows-1252'){ def line = it.split(/\t/) - if (line.length > 11 && line[0] ==~ /\d+/) { + if (line.length > 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()