// blacklist crap entries
This commit is contained in:
parent
1dd07c5a71
commit
bc5a8fffc0
|
@ -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 ->
|
tvdb_updates.values().each{ update ->
|
||||||
if (tvdb[update.id] == null || update.time > tvdb[update.id][0]) {
|
if (tvdb[update.id] == null || update.time > tvdb[update.id][0]) {
|
||||||
|
@ -277,6 +280,7 @@ def addSeriesAlias = { from, to ->
|
||||||
thetvdb_index << [se[0], to]
|
thetvdb_index << [se[0], to]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// 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')
|
||||||
|
@ -300,7 +304,6 @@ addSeriesAlias('Cosmos: A Spacetime Odyssey', 'Cosmos A Space Time Odyssey')
|
||||||
addSeriesAlias('The Bridge (2013)', 'The Bridge (US)')
|
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.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] }
|
thetvdb_index = thetvdb_index.sort{ a, b -> a[0] <=> b[0] }
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue