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

Merge pull request #1213 from fernandog/patch-16

Fix issue when location is empty and there's no len()
This commit is contained in:
echel0n 2015-01-29 14:42:28 -08:00
commit 3694ff3053

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