mirror of
https://github.com/moparisthebest/SickRage
synced 2024-12-12 11:02:21 -05:00
bugfix in tv.py
This commit is contained in:
parent
264f852a97
commit
ff548a7f6b
@ -716,11 +716,11 @@ class TVShow(object):
|
|||||||
|
|
||||||
myEp = t[self.indexerid]
|
myEp = t[self.indexerid]
|
||||||
|
|
||||||
|
try:
|
||||||
if getattr(myEp, 'seriesname', None) is not None:
|
if getattr(myEp, 'seriesname', None) is not None:
|
||||||
self.name = myEp["seriesname"].strip()
|
self.name = myEp['seriesname'].strip()
|
||||||
else:
|
except AttributeError:
|
||||||
raise indexer_exceptions.indexer_attributenotfound\
|
raise indexer_exceptions.indexer_attributenotfound("Found %s, but attribute 'seriesname' was empty." % (self.indexerid))
|
||||||
("Found %s, but attribute 'seriesname' was empty." % (self.indexerid))
|
|
||||||
|
|
||||||
self.classification = getattr(myEp, 'classification', 'Scripted')
|
self.classification = getattr(myEp, 'classification', 'Scripted')
|
||||||
self.genre = getattr(myEp, 'genre', '')
|
self.genre = getattr(myEp, 'genre', '')
|
||||||
|
Loading…
Reference in New Issue
Block a user