From 5b69783e86cced47d40829ae8caa381138da3417 Mon Sep 17 00:00:00 2001 From: echel0n Date: Tue, 22 Apr 2014 18:58:35 -0700 Subject: [PATCH] Fixed scene numbering, was not being converted to a int before. --- sickbeard/webserve.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/sickbeard/webserve.py b/sickbeard/webserve.py index 88f7fd7c..80ca3182 100644 --- a/sickbeard/webserve.py +++ b/sickbeard/webserve.py @@ -831,10 +831,10 @@ class History: for sql_result in sqlResults: - if not any((history['show_id'] == sql_result['showid'] \ - and history['season'] == sql_result['season'] \ - and history['episode'] == sql_result['episode'] \ - and history['quality'] == sql_result['quality']) \ + if not any((history['show_id'] == sql_result['showid'] + and history['season'] == sql_result['season'] + and history['episode'] == sql_result['episode'] + and history['quality'] == sql_result['quality']) for history in compact): history = {} @@ -3382,6 +3382,7 @@ class Home: logger.log(u"setEpisodeSceneNumbering for %s from %sx%s to %sx%s" % (show, forSeason, forEpisode, sceneSeason, sceneEpisode), logger.DEBUG) + show = int(show) forSeason = int(forSeason) forEpisode = int(forEpisode) if sceneSeason is not None: sceneSeason = int(sceneSeason) @@ -3510,6 +3511,7 @@ class WebInterface: cache_obj = image_cache.ImageCache() + image_file_name = None if which == 'poster': image_file_name = cache_obj.poster_path(showObj.indexerid) if which == 'poster_thumb':