From 561a12a735fb3623c37f8bc030f05160c0a2f1a0 Mon Sep 17 00:00:00 2001 From: echel0n Date: Mon, 7 Jul 2014 09:10:35 -0700 Subject: [PATCH] Fix for metadata mede8er provider for error: tvdb_attributenotfound: Cannot find attribute '_actors' --- sickbeard/metadata/mede8er.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sickbeard/metadata/mede8er.py b/sickbeard/metadata/mede8er.py index 5715a5f2..e90bca7e 100644 --- a/sickbeard/metadata/mede8er.py +++ b/sickbeard/metadata/mede8er.py @@ -197,7 +197,7 @@ class Mede8erMetadata(mediabrowser.MediaBrowserMetadata): cast = etree.SubElement(tv_node, "cast") - if myShow["_actors"] != None: + if getattr(myShow, '_actors', None) is not None: for actor in myShow['_actors']: cur_actor_name_text = actor['name'] @@ -328,7 +328,7 @@ class Mede8erMetadata(mediabrowser.MediaBrowserMetadata): cast = etree.SubElement(episode, "cast") - if myShow["_actors"] != None: + if getattr(myShow, '_actors', None) is not None: for actor in myShow['_actors']: cur_actor_name_text = actor['name']