mirror of
https://github.com/moparisthebest/SickRage
synced 2024-12-12 02:52:20 -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]
|
||||
|
||||
if getattr(myEp, 'seriesname', None) is not None:
|
||||
self.name = myEp["seriesname"].strip()
|
||||
else:
|
||||
raise indexer_exceptions.indexer_attributenotfound\
|
||||
("Found %s, but attribute 'seriesname' was empty." % (self.indexerid))
|
||||
try:
|
||||
if getattr(myEp, 'seriesname', None) is not None:
|
||||
self.name = myEp['seriesname'].strip()
|
||||
except AttributeError:
|
||||
raise indexer_exceptions.indexer_attributenotfound("Found %s, but attribute 'seriesname' was empty." % (self.indexerid))
|
||||
|
||||
self.classification = getattr(myEp, 'classification', 'Scripted')
|
||||
self.genre = getattr(myEp, 'genre', '')
|
||||
|
Loading…
Reference in New Issue
Block a user