1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-11-17 06:45:06 -05:00

* fix & ignore 1970-1975 style series patterns

This commit is contained in:
Reinhard Pointner 2014-09-26 16:41:42 +00:00
parent af8ce77f87
commit 565b951862

View File

@ -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()