mirror of
https://github.com/moparisthebest/SickRage
synced 2024-11-17 14:55:07 -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
|
raise
|
||||||
|
|
||||||
# check for title and id
|
# check for title and id
|
||||||
try:
|
if getattr(myShow, 'seriesname', None) is None or getattr(myShow, 'id', None) is None:
|
||||||
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:
|
|
||||||
logger.log(u"Incomplete info for show with id " + str(show_obj.indexerid) + " on " + show_obj.indexer + ", skipping it", logger.ERROR)
|
logger.log(u"Incomplete info for show with id " + str(show_obj.indexerid) + " on " + show_obj.indexer + ", skipping it", logger.ERROR)
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
@ -125,11 +125,7 @@ class XBMC_12PlusMetadata(generic.GenericMetadata):
|
|||||||
raise
|
raise
|
||||||
|
|
||||||
# check for title and id
|
# check for title and id
|
||||||
try:
|
if getattr(myShow, 'seriesname', None) is None or getattr(myShow, 'id', None) is None:
|
||||||
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:
|
|
||||||
logger.log(u"Incomplete info for show with id " + str(show_ID) + " on " + show_obj.indexer + ", skipping it", logger.ERROR)
|
logger.log(u"Incomplete info for show with id " + str(show_ID) + " on " + show_obj.indexer + ", skipping it", logger.ERROR)
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user