mirror of
https://github.com/moparisthebest/SickRage
synced 2024-12-12 02:52:20 -05:00
Small fixes to metadata code
This commit is contained in:
parent
d6920ba4a8
commit
00e29a1ef5
@ -250,11 +250,7 @@ class MediaBrowserMetadata(generic.GenericMetadata):
|
||||
raise
|
||||
|
||||
# check for title and id
|
||||
try:
|
||||
if getattr(myShow, 'seriesname', None) is None or getattr(myShow, 'id', None) is None:
|
||||
logger.log(u"Incomplete info for show with id " + str(show_obj.indexerid) + " on " + show_obj.indexer + ", skipping it", logger.ERROR)
|
||||
return False
|
||||
except indexer_exceptions.indexer_attributenotfound:
|
||||
if getattr(myShow, 'seriesname', None) is None or getattr(myShow, 'id', None) is None:
|
||||
logger.log(u"Incomplete info for show with id " + str(show_obj.indexerid) + " on " + show_obj.indexer + ", skipping it", logger.ERROR)
|
||||
return False
|
||||
|
||||
|
@ -125,11 +125,7 @@ class XBMC_12PlusMetadata(generic.GenericMetadata):
|
||||
raise
|
||||
|
||||
# check for title and id
|
||||
try:
|
||||
if getattr(myShow, 'seriesname', None) is None or getattr(myShow, 'id', None) is None:
|
||||
logger.log(u"Incomplete info for show with id " + str(show_ID) + " on " + show_obj.indexer + ", skipping it", logger.ERROR)
|
||||
return False
|
||||
except indexer_exceptions.indexer_attributenotfound:
|
||||
if getattr(myShow, 'seriesname', None) is None or getattr(myShow, 'id', None) is None:
|
||||
logger.log(u"Incomplete info for show with id " + str(show_ID) + " on " + show_obj.indexer + ", skipping it", logger.ERROR)
|
||||
return False
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user