From 561a12a735fb3623c37f8bc030f05160c0a2f1a0 Mon Sep 17 00:00:00 2001 From: echel0n Date: Mon, 7 Jul 2014 09:10:35 -0700 Subject: [PATCH 1/3] 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'] From 8063ac5d7a374f305e57c15c78948884df384462 Mon Sep 17 00:00:00 2001 From: echel0n Date: Mon, 7 Jul 2014 09:32:04 -0700 Subject: [PATCH 2/3] Fix for displayshows error: ValueError: invalid literal for int() with base 10: '' --- gui/slick/interfaces/default/displayShow.tmpl | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/gui/slick/interfaces/default/displayShow.tmpl b/gui/slick/interfaces/default/displayShow.tmpl index 00bc0432..f30d1b65 100644 --- a/gui/slick/interfaces/default/displayShow.tmpl +++ b/gui/slick/interfaces/default/displayShow.tmpl @@ -329,9 +329,8 @@ #end if - #if $epResult["location"] != "" and $epResult["location"] != None: - #set $root_dirs = $sickbeard.ROOT_DIRS.split('|') - #set $video_root = $root_dirs[int(root_dirs[0]) + 1] + #if $epResult["location"]: + #set $video_root = $epResult["location"].strip($epResult["name"])