From bc5a8fffc087825b9690f5b676329ba30d4019ef Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Fri, 5 Dec 2014 16:21:13 +0000 Subject: [PATCH] // blacklist crap entries --- BuildData.groovy | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/BuildData.groovy b/BuildData.groovy index 30b693e9..5d6c50b3 100644 --- a/BuildData.groovy +++ b/BuildData.groovy @@ -195,6 +195,9 @@ new File('updates_all.xml').eachLine('UTF-8'){ } } +// blacklist crap entries +tvdb_updates.removeAll( [219901, 256135] ) + tvdb_updates.values().each{ update -> if (tvdb[update.id] == null || update.time > tvdb[update.id][0]) { @@ -277,6 +280,7 @@ def addSeriesAlias = { from, to -> thetvdb_index << [se[0], to] } + // additional custom mappings addSeriesAlias('Law & Order: Special Victims Unit', 'Law and Order SVU') addSeriesAlias('Law & Order: Special Victims Unit', 'Law & Order SVU') @@ -300,7 +304,6 @@ addSeriesAlias('Cosmos: A Spacetime Odyssey', 'Cosmos A Space Time Odyssey') addSeriesAlias('The Bridge (2013)', 'The Bridge (US)') - 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.sort{ a, b -> a[0] <=> b[0] }