From 491eca20e024dadf4c19bf04a5c5fe66b2d4e391 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Thu, 28 Sep 2017 21:39:21 +0200 Subject: [PATCH] TheTVDB rewrites HTTP to HTTPS nowadays --- 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 9c0502be..fce0e267 100755 --- a/build-data/BuildData.groovy +++ b/build-data/BuildData.groovy @@ -214,7 +214,7 @@ tvdb_updates.values().each{ update -> try { retry(2, 60000) { def seriesNames = [] - def xml = new XmlSlurper().parse("http://thetvdb.com/api/BA864DEE427E384A/series/${update.id}/en.xml") + def xml = new XmlSlurper().parse("https://thetvdb.com/api/BA864DEE427E384A/series/${update.id}/en.xml") def imdbid = any{ xml.Series.IMDB_ID.text().match(/tt\d+/) }{ '' } seriesNames += xml.Series.SeriesName.text() @@ -231,7 +231,7 @@ tvdb_updates.values().each{ update -> // scrape extra alias titles from webpage (not supported yet by API) def html = Cache.getCache('thetvdb_series_page', CacheType.Persistent).text(update.id) { - return new URL("http://thetvdb.com/?tab=series&id=${it}") + return new URL("https://thetvdb.com/?tab=series&id=${it}") }.expire(Cache.ONE_MONTH).get() def jsoup = org.jsoup.Jsoup.parse(html)