mirror of
https://github.com/SickGear/SickGear.git
synced 2025-01-05 17:43:37 +00:00
Fix metadata show not found.
This commit is contained in:
parent
23af58908d
commit
3b61e5e821
7 changed files with 12 additions and 12 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue