* update exclude rules

This commit is contained in:
Reinhard Pointner 2015-11-03 03:43:54 +00:00
parent 0223e425ab
commit de0c7a627e
1 changed files with 1 additions and 1 deletions

View File

@ -289,7 +289,7 @@ new File("${dir_data}/add-series-alias.txt").splitEachLine(/\t+/, 'UTF-8') { row
thetvdb_index << [se[0], row[1]]
}
thetvdb_index = thetvdb_index.findResults{ [it[0] as Integer, it[1].replaceAll(/\s+/, ' ').trim()] }.findAll{ !(it[1] =~ /(?i:duplicate)/ || it[1] =~ /\d{6,}/ || it[1].startsWith('*') || it[1].endsWith('*') || it[1].length() < 2) }
thetvdb_index = thetvdb_index.findResults{ [it[0] as Integer, it[1].replaceAll(/\s+/, ' ').trim()] }.findAll{ !(it[1] =~ /(?i:duplicate|Series.Not.Permitted)/ || it[1] =~ /\d{6,}/ || it[1].startsWith('*') || it[1].endsWith('*') || it[1].length() < 2) }
thetvdb_index = thetvdb_index.sort{ a, b -> a[0] <=> b[0] }
// join and sort