From 18569665de7804140a11976f0ba7e10d37f34181 Mon Sep 17 00:00:00 2001 From: Fernando Date: Tue, 20 Jan 2015 20:06:57 -0200 Subject: [PATCH] Fix issue when location is empty Comments here https://github.com/SiCKRAGETV/SickRage/pull/1186 --- gui/slick/interfaces/default/displayShow.tmpl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gui/slick/interfaces/default/displayShow.tmpl b/gui/slick/interfaces/default/displayShow.tmpl index c85e9f49..c4c46c25 100644 --- a/gui/slick/interfaces/default/displayShow.tmpl +++ b/gui/slick/interfaces/default/displayShow.tmpl @@ -377,7 +377,7 @@ #end if Name Airdate - #if len($sickbeard.DOWNLOAD_URL) > 0 + #if $sickbeard.DOWNLOAD_URL Download #end if #if $sickbeard.USE_SUBTITLES and $show.subtitles: @@ -475,7 +475,7 @@ #if int($epResult['airdate']) == 1 then 'never' else $sbdatetime.sbdatetime.sbfdate($sbdatetime.sbdatetime.convert_to_setting($network_timezones.parse_date_time($epResult['airdate'],$show.airs,$show.network)))# - #if len($sickbeard.DOWNLOAD_URL) > 0 and len($epResult['location']) > 0 + #if $sickbeard.DOWNLOAD_URL and $epResult['location'] #set $filename = $epResult['location'] #for $rootDir in $sickbeard.ROOT_DIRS.split('|') @@ -486,7 +486,7 @@ #set $filename = $sickbeard.DOWNLOAD_URL + $urllib.quote($filename.encode('utf8'))
Download
- #elif len($sickbeard.DOWNLOAD_URL) > 0 + #elif $sickbeard.DOWNLOAD_URL #end if