From 8063ac5d7a374f305e57c15c78948884df384462 Mon Sep 17 00:00:00 2001 From: echel0n Date: Mon, 7 Jul 2014 09:32:04 -0700 Subject: [PATCH] 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"])