1
0
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:
echel0n 2014-03-11 16:48:10 -07:00
parent d6920ba4a8
commit 00e29a1ef5
2 changed files with 2 additions and 10 deletions

View File

@ -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

View File

@ -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