* update special cases

This commit is contained in:
Reinhard Pointner 2013-12-16 03:59:55 +00:00
parent bc46735212
commit 241b3aeee0
2 changed files with 6 additions and 4 deletions

View File

@ -193,19 +193,22 @@ tvdb.values().each{
def addSeriesAlias = { from, to -> def addSeriesAlias = { from, to ->
def se = thetvdb_index.find{ from == it[1] } def se = thetvdb_index.find{ from == it[1] }
if (se == null) throw new Exception("Unabled to find series '${from}'")
thetvdb_index << [se[0], to] thetvdb_index << [se[0], to]
// println "Added alias '${to}' for ${se}"
} }
// additional custom mappings // additional custom mappings
addSeriesAlias('Law & Order: Special Victims Unit', 'Law and Order SVU') addSeriesAlias('Law & Order: Special Victims Unit', 'Law and Order SVU')
addSeriesAlias('Law & Order: Special Victims Unit', 'Law & Order SVU') addSeriesAlias('Law & Order: Special Victims Unit', 'Law & Order SVU')
addSeriesAlias('Battlestar Galactica (2003)', 'BSG')
addSeriesAlias('CSI: Crime Scene Investigation', 'CSI') addSeriesAlias('CSI: Crime Scene Investigation', 'CSI')
addSeriesAlias('M*A*S*H', 'MASH') addSeriesAlias('M*A*S*H', 'MASH')
addSeriesAlias('M*A*S*H', 'M.A.S.H.') addSeriesAlias('M*A*S*H', 'M.A.S.H.')
addSeriesAlias('NCIS: Los Angeles', 'NCIS LA') addSeriesAlias('NCIS: Los Angeles', 'NCIS LA')
addSeriesAlias('How I Met Your Mother', 'HIMYM')
addSeriesAlias('Battlestar Galactica (2003)', 'BSG')
addSeriesAlias('World Series of Poker', 'WSOP') addSeriesAlias('World Series of Poker', 'WSOP')
addSeriesAlias('English Premier League', 'EPL')
addSeriesAlias('House of Cards', 'HOC')
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)/ || it[1] =~ /\d{6,}/ || it[1].startsWith('*') || it[1].endsWith('*') || it[1].length() < 2) }

View File

@ -1,7 +1,7 @@
BSG Battlestar Galactica BSG Battlestar Galactica
CSI(?!.{0,3}(NY|LA|Miami|Academy)) CSI: Crime Scene Investigation CSI(?!.{0,3}(NY|LA|Miami|Academy)) CSI: Crime Scene Investigation
epl English Premier League epl English Premier League
HIMYM How I Met your Mother HIMYM How I Met Your Mother
Hml8p Homeland Hml8p Homeland
hoc House of Cards hoc House of Cards
law.and.order.svu Law & Order: Special Victims Unit law.and.order.svu Law & Order: Special Victims Unit
@ -11,5 +11,4 @@ NCIS.LA NCIS: Los Angeles
SuiG7p Suits SuiG7p Suits
tvs.got Game of Thrones tvs.got Game of Thrones
UndG7p Underemployed UndG7p Underemployed
vampire The Vampire Diaries
wsop World Series of Poker wsop World Series of Poker