diff --git a/build-data/BuildData.groovy b/build-data/BuildData.groovy index 2f871164..f41b80de 100755 --- a/build-data/BuildData.groovy +++ b/build-data/BuildData.groovy @@ -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