From 42e089dfa11bec40fd8281bc416792f325929a21 Mon Sep 17 00:00:00 2001 From: Prinz23 Date: Wed, 31 Dec 2014 18:25:52 +0100 Subject: [PATCH] Fix Add From Trending Show page to work with Trakt changes. ID changed from number. Poster URLs changed. --- CHANGES.md | 1 + gui/slick/interfaces/default/home_trendingShows.tmpl | 2 +- sickbeard/webserve.py | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 307a212f..6880d0cf 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -11,6 +11,7 @@ * Change ThePirateBay to use oldpiratebay as a temporary fix * Change Search Settings/Torrent/Deluge option texts for improved understanding * Fix Womble's Index searching (ssl disabled for now, old categories are the new active ones again) +* Fix Add From Trending Show page to work with Trakt changes [develop changelog] diff --git a/gui/slick/interfaces/default/home_trendingShows.tmpl b/gui/slick/interfaces/default/home_trendingShows.tmpl index 6bc04d26..3197db5b 100644 --- a/gui/slick/interfaces/default/home_trendingShows.tmpl +++ b/gui/slick/interfaces/default/home_trendingShows.tmpl @@ -129,7 +129,7 @@ #else #for $cur_show in $trending_shows: -#set $image = re.sub(r'(.*)(\..*?)$', r'\1-300\2', $cur_show['images']['poster'], 0, re.IGNORECASE | re.MULTILINE) +#set $image = re.sub(r'(.*)/original/(.+)$', r'\1/thumb/\2', $cur_show['images']['poster'], 0, re.IGNORECASE | re.MULTILINE)
diff --git a/sickbeard/webserve.py b/sickbeard/webserve.py index 9d888825..e51cded0 100644 --- a/sickbeard/webserve.py +++ b/sickbeard/webserve.py @@ -2980,7 +2980,7 @@ class NewHomeAddShows(MainHandler): tvdbs = ['tvdb_id', 'tvrage_id'] for index, tvdb in enumerate(tvdbs): try: - item[u'show_id'] = item[tvdb] + item[u'show_id'] = str(item[tvdb]) tvshow = helpers.findCertainShow(sickbeard.showList, int(item[tvdb])) except: continue