TheTVDB rewrites HTTP to HTTPS nowadays

This commit is contained in:
Reinhard Pointner 2017-09-28 21:39:21 +02:00
parent 39e4dcebc2
commit 491eca20e0
1 changed files with 2 additions and 2 deletions

View File

@ -214,7 +214,7 @@ tvdb_updates.values().each{ update ->
try { try {
retry(2, 60000) { retry(2, 60000) {
def seriesNames = [] 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+/) }{ '' } def imdbid = any{ xml.Series.IMDB_ID.text().match(/tt\d+/) }{ '' }
seriesNames += xml.Series.SeriesName.text() 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) // scrape extra alias titles from webpage (not supported yet by API)
def html = Cache.getCache('thetvdb_series_page', CacheType.Persistent).text(update.id) { 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() }.expire(Cache.ONE_MONTH).get()
def jsoup = org.jsoup.Jsoup.parse(html) def jsoup = org.jsoup.Jsoup.parse(html)