Fix Add From Trending page (indexer_id can be "None" which causes white screen when clicking "Add Show").

Conflicts:
	CHANGES.md
This commit is contained in:
JackDandy 2015-03-10 02:35:56 +00:00
parent 53af6f54c8
commit b95be5e53d
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
### 0.7.2 (2015-03-10 17:05:00 UTC)
* Fix Add From Trending page (indexer_id can be "None" which causes white screen when clicking "Add Show")
### 0.7.1 (2015-03-10 17:00:00 UTC)
* Fix error page when clicking "Add Recommended"

View file

@ -2954,7 +2954,7 @@ class NewHomeAddShows(MainHandler):
return _munge(t)
def addTraktShow(self, indexer_id, showName):
if helpers.findCertainShow(sickbeard.showList, int(indexer_id)):
if helpers.findCertainShow(sickbeard.showList, config.to_int(indexer_id, '')):
return
return self.newShow('|'.join(['', '', indexer_id, showName]), use_show_name=True)