1
0
mirror of https://github.com/moparisthebest/SickRage synced 2024-11-05 17:05:03 -05:00

Fix issue when location is empty

Comments here
https://github.com/SiCKRAGETV/SickRage/pull/1186
This commit is contained in:
Fernando 2015-01-20 20:06:57 -02:00
parent 91cb8d885c
commit 18569665de

View File

@ -377,7 +377,7 @@
#end if
<th class="col-name">Name</th>
<th class="col-airdate">Airdate</th>
#if len($sickbeard.DOWNLOAD_URL) > 0
#if $sickbeard.DOWNLOAD_URL
<th class="col-ep">Download</th>
#end if
#if $sickbeard.USE_SUBTITLES and $show.subtitles:
@ -475,7 +475,7 @@
<span class="${fuzzydate}">#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)))#</span>
</td>
#if len($sickbeard.DOWNLOAD_URL) > 0 and len($epResult['location']) > 0
#if $sickbeard.DOWNLOAD_URL and $epResult['location']
<td>
#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'))
<center><a href="$filename">Download</a></center>
</td>
#elif len($sickbeard.DOWNLOAD_URL) > 0
#elif $sickbeard.DOWNLOAD_URL
<td></td>
#end if