From 00e29a1ef5e0eb6aaf0db7b34062f7e85445e658 Mon Sep 17 00:00:00 2001 From: echel0n Date: Tue, 11 Mar 2014 16:48:10 -0700 Subject: [PATCH] Small fixes to metadata code --- sickbeard/metadata/mediabrowser.py | 6 +----- sickbeard/metadata/xbmc_12plus.py | 6 +----- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/sickbeard/metadata/mediabrowser.py b/sickbeard/metadata/mediabrowser.py index 9f5c0c71..8d24936c 100644 --- a/sickbeard/metadata/mediabrowser.py +++ b/sickbeard/metadata/mediabrowser.py @@ -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 diff --git a/sickbeard/metadata/xbmc_12plus.py b/sickbeard/metadata/xbmc_12plus.py index f634de52..ba620930 100644 --- a/sickbeard/metadata/xbmc_12plus.py +++ b/sickbeard/metadata/xbmc_12plus.py @@ -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