1
0
mirror of https://github.com/moparisthebest/SickRage synced 2024-12-12 11:02:21 -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,13 +250,9 @@ 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) 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
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)
return False
indexerid = etree.SubElement(tv_node, "id") indexerid = etree.SubElement(tv_node, "id")
if getattr(myShow, 'id', None) is not None: if getattr(myShow, 'id', None) is not None:

View File

@ -125,13 +125,9 @@ 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) logger.log(u"Incomplete info for show with id " + str(show_ID) + " on " + show_obj.indexer + ", skipping it", logger.ERROR)
return False 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)
return False
title = etree.SubElement(tv_node, "title") title = etree.SubElement(tv_node, "title")
if getattr(myShow, 'seriesname', None) is not None: if getattr(myShow, 'seriesname', None) is not None: