Exclude OMDb scraper issues
This commit is contained in:
parent
fe097b5a43
commit
35bbc548cc
|
@ -249,7 +249,7 @@ tvdb_updates.values().each{ update ->
|
||||||
if (votes >= 5 && rating >= 4) {
|
if (votes >= 5 && rating >= 4) {
|
||||||
tryLogCatch{
|
tryLogCatch{
|
||||||
if (imdbid =~ /tt(\d+)/) {
|
if (imdbid =~ /tt(\d+)/) {
|
||||||
seriesNames += OMDb.getMovieDescriptor(new Movie(null, 0, imdbid.match(/tt(\d+)/) as int, -1), Locale.ENGLISH).getName()
|
seriesNames += OMDb.getMovieDescriptor(new Movie(imdbid.match(/tt(\d+)/) as int), Locale.ENGLISH).getName()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -320,7 +320,7 @@ tvdb.values().each{ r ->
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
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.findResults{ [it[0] as Integer, it[1].replaceAll(/\s+/, ' ').trim()] }.findAll{ !(it[1] =~ /(?i:Duplicate|Series.Not.Permitted|Episode.#\d+.\d+)/ || 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] }
|
||||||
|
|
||||||
// join and sort
|
// join and sort
|
||||||
|
|
Loading…
Reference in New Issue