Fix for metadata mede8er provider for error: tvdb_attributenotfound: Cannot find attribute '_actors'

This commit is contained in:
echel0n 2014-07-07 09:10:35 -07:00
parent 2b0b0dd885
commit 561a12a735

View file

@ -197,7 +197,7 @@ class Mede8erMetadata(mediabrowser.MediaBrowserMetadata):
cast = etree.SubElement(tv_node, "cast") cast = etree.SubElement(tv_node, "cast")
if myShow["_actors"] != None: if getattr(myShow, '_actors', None) is not None:
for actor in myShow['_actors']: for actor in myShow['_actors']:
cur_actor_name_text = actor['name'] cur_actor_name_text = actor['name']
@ -328,7 +328,7 @@ class Mede8erMetadata(mediabrowser.MediaBrowserMetadata):
cast = etree.SubElement(episode, "cast") cast = etree.SubElement(episode, "cast")
if myShow["_actors"] != None: if getattr(myShow, '_actors', None) is not None:
for actor in myShow['_actors']: for actor in myShow['_actors']:
cur_actor_name_text = actor['name'] cur_actor_name_text = actor['name']