mirror of
https://github.com/moparisthebest/SickRage
synced 2024-11-16 14:25:02 -05:00
Merge pull request #683 from breu/breudev
Handle case where we don't get back valid data from trakt
This commit is contained in:
commit
6424e9fbc9
@ -148,6 +148,7 @@ class TraktChecker():
|
||||
self.addDefaultShow(indexer, indexer_id, show["title"], SKIPPED)
|
||||
newShow = helpers.findCertainShow(sickbeard.showList, indexer_id)
|
||||
|
||||
try:
|
||||
if newShow and int(newShow['indexer']) == indexer:
|
||||
for episode in show["episodes"]:
|
||||
if newShow is not None:
|
||||
@ -155,6 +156,8 @@ class TraktChecker():
|
||||
else:
|
||||
self.todoWanted.append((indexer_id, episode["season"], episode["number"]))
|
||||
self.startBacklog(newShow)
|
||||
except TypeError:
|
||||
logger.log(u"Could not parse the output from trakt for " + show["title"], logger.DEBUG)
|
||||
|
||||
def addDefaultShow(self, indexer, indexer_id, name, status):
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user