1
0
mirror of https://github.com/moparisthebest/SickRage synced 2024-12-24 08:48:50 -05:00

Possible fix for ValueError: invalid literal for int() with base 10: 'undefined'

This commit is contained in:
Fernando 2015-02-20 23:14:51 -02:00
parent 62f45524eb
commit a61d8c7c2e

View File

@ -1824,7 +1824,14 @@ class Home(WebRoot):
def getManualSearchStatus(self, show=None, season=None):
def getEpisodes(searchThread, searchstatus):
results = []
showObj = sickbeard.helpers.findCertainShow(sickbeard.showList, int(show))
if show is None:
return self._genericMessage("Error", "Invalid show ID")
else:
showObj = sickbeard.helpers.findCertainShow(sickbeard.showList, int(show))
if showObj is None:
return self._genericMessage("Error", "Unable to find the specified show")
if isinstance(searchThread, sickbeard.search_queue.ManualSearchQueueItem):
results.append({'episode': searchThread.segment.episode,