From 35bbc548ccfd350b7574067c66a8617181943727 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Fri, 5 Aug 2016 17:18:21 +0800 Subject: [PATCH] Exclude OMDb scraper issues --- build-data/BuildData.groovy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build-data/BuildData.groovy b/build-data/BuildData.groovy index 4146749c..9365dd9d 100755 --- a/build-data/BuildData.groovy +++ b/build-data/BuildData.groovy @@ -249,7 +249,7 @@ tvdb_updates.values().each{ update -> if (votes >= 5 && rating >= 4) { tryLogCatch{ 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] } // join and sort