Fix metadata show not found.

This commit is contained in:
Prinz23 2018-04-07 03:22:54 +02:00 committed by JackDandy
parent 23af58908d
commit 3b61e5e821
7 changed files with 12 additions and 12 deletions

View file

@ -789,7 +789,7 @@ class GenericMetadata():
show_obj.indexer).name + ", not downloading images: " + ex(e), logger.ERROR)
return None
if not indexer_show_obj:
if not isinstance(indexer_show_obj, dict) or None is getattr(indexer_show_obj, 'seriesname', None):
logger.log(u'Show %s not found on %s ' %
(show_obj.name, sickbeard.indexerApi(show_obj.indexer).name), logger.WARNING)
return None
@ -881,7 +881,7 @@ class GenericMetadata():
show_obj.indexer).name + ', not downloading images: ' + ex(e), logger.ERROR)
return result
if not indexer_show_obj:
if not isinstance(indexer_show_obj, dict) or None is getattr(indexer_show_obj, 'seriesname', None):
logger.log(u'Show %s not found on %s ' %
(show_obj.name, sickbeard.indexerApi(show_obj.indexer).name), logger.WARNING)
return result

View file

@ -124,7 +124,7 @@ class KODIMetadata(generic.GenericMetadata):
logger.ERROR)
raise
if not myShow:
if not isinstance(myShow, dict) or None is getattr(myShow, 'seriesname', None):
logger.log(u'Show %s not found on %s ' % (show_obj.name, sickbeard.indexerApi(show_obj.indexer).name),
logger.WARNING)
return
@ -246,7 +246,7 @@ class KODIMetadata(generic.GenericMetadata):
ep_obj.show.indexer).name + ' while creating meta files - skipping - ' + ex(e), logger.ERROR)
return
if not myShow:
if not isinstance(myShow, dict) or None is getattr(myShow, 'seriesname', None):
logger.log(u'Show %s not found on %s ' %
(ep_obj.show.name, sickbeard.indexerApi(ep_obj.show.indexer).name), logger.WARNING)
return

View file

@ -129,7 +129,7 @@ class Mede8erMetadata(mediabrowser.MediaBrowserMetadata):
logger.log(u"TVDB is down, can't use its data to make the NFO", logger.ERROR)
raise
if not myShow:
if not isinstance(myShow, dict) or None is getattr(myShow, 'seriesname', None):
logger.log(u'Show %s not found on %s ' % (show_obj.name, sickbeard.indexerApi(show_obj.indexer).name),
logger.WARNING)
return
@ -247,7 +247,7 @@ class Mede8erMetadata(mediabrowser.MediaBrowserMetadata):
logger.log(u"Unable to connect to TVDB while creating meta files - skipping - " + ex(e), logger.ERROR)
return False
if not myShow:
if not isinstance(myShow, dict) or None is getattr(myShow, 'seriesname', None):
logger.log(u'Show %s not found on %s ' % (ep_obj.show.name, sickbeard.indexerApi(ep_obj.show.indexer).name),
logger.WARNING)
return

View file

@ -256,7 +256,7 @@ class MediaBrowserMetadata(generic.GenericMetadata):
logger.ERROR)
raise
if not myShow:
if not isinstance(myShow, dict) or None is getattr(myShow, 'seriesname', None):
logger.log(u'Show %s not found on %s ' % (show_obj.name, sickbeard.indexerApi(show_obj.indexer).name),
logger.WARNING)
return
@ -421,7 +421,7 @@ class MediaBrowserMetadata(generic.GenericMetadata):
ep_obj.show.indexer).name + " while creating meta files - skipping - " + ex(e), logger.ERROR)
return False
if not myShow:
if not isinstance(myShow, dict) or None is getattr(myShow, 'seriesname', None):
logger.log(u'Show %s not found on %s ' % (ep_obj.show.name, sickbeard.indexerApi(ep_obj.show.indexer).name),
logger.WARNING)
return

View file

@ -188,7 +188,7 @@ class TIVOMetadata(generic.GenericMetadata):
ep_obj.show.indexer).name + " while creating meta files - skipping - " + str(e), logger.ERROR)
return False
if not myShow:
if not isinstance(myShow, dict) or None is getattr(myShow, 'seriesname', None):
logger.log(u'Show %s not found on %s ' % (ep_obj.show.name, sickbeard.indexerApi(ep_obj.show.indexer).name),
logger.WARNING)
return

View file

@ -199,7 +199,7 @@ class WDTVMetadata(generic.GenericMetadata):
ep_obj.show.indexer).name + " while creating meta files - skipping - " + ex(e), logger.ERROR)
return False
if not myShow:
if not isinstance(myShow, dict) or None is getattr(myShow, 'seriesname', None):
logger.log(u'Show %s not found on %s ' % (ep_obj.show.name, sickbeard.indexerApi(ep_obj.show.indexer).name),
logger.WARNING)
return

View file

@ -124,7 +124,7 @@ class XBMC_12PlusMetadata(generic.GenericMetadata):
logger.ERROR)
raise
if not myShow:
if not isinstance(myShow, dict) or None is getattr(myShow, 'seriesname', None):
logger.log(u'Show %s not found on %s ' % (show_obj.name, sickbeard.indexerApi(show_obj.indexer).name),
logger.WARNING)
return
@ -246,7 +246,7 @@ class XBMC_12PlusMetadata(generic.GenericMetadata):
ep_obj.show.indexer).name + " while creating meta files - skipping - " + ex(e), logger.ERROR)
return
if not myShow:
if not isinstance(myShow, dict) or None is getattr(myShow, 'seriesname', None):
logger.log(u'Show %s not found on %s ' % (ep_obj.show.name, sickbeard.indexerApi(ep_obj.show.indexer).name),
logger.WARNING)
return