mirror of
https://github.com/moparisthebest/SickRage
synced 2025-01-07 11:58:01 -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:
commit
3694ff3053
@ -377,7 +377,7 @@
|
|||||||
#end if
|
#end if
|
||||||
<th class="col-name">Name</th>
|
<th class="col-name">Name</th>
|
||||||
<th class="col-airdate">Airdate</th>
|
<th class="col-airdate">Airdate</th>
|
||||||
#if len($sickbeard.DOWNLOAD_URL) > 0
|
#if $sickbeard.DOWNLOAD_URL
|
||||||
<th class="col-ep">Download</th>
|
<th class="col-ep">Download</th>
|
||||||
#end if
|
#end if
|
||||||
#if $sickbeard.USE_SUBTITLES and $show.subtitles:
|
#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>
|
<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>
|
</td>
|
||||||
|
|
||||||
#if len($sickbeard.DOWNLOAD_URL) > 0 and len($epResult['location']) > 0
|
#if $sickbeard.DOWNLOAD_URL and $epResult['location']
|
||||||
<td>
|
<td>
|
||||||
#set $filename = $epResult['location']
|
#set $filename = $epResult['location']
|
||||||
#for $rootDir in $sickbeard.ROOT_DIRS.split('|')
|
#for $rootDir in $sickbeard.ROOT_DIRS.split('|')
|
||||||
@ -486,7 +486,7 @@
|
|||||||
#set $filename = $sickbeard.DOWNLOAD_URL + $urllib.quote($filename.encode('utf8'))
|
#set $filename = $sickbeard.DOWNLOAD_URL + $urllib.quote($filename.encode('utf8'))
|
||||||
<center><a href="$filename">Download</a></center>
|
<center><a href="$filename">Download</a></center>
|
||||||
</td>
|
</td>
|
||||||
#elif len($sickbeard.DOWNLOAD_URL) > 0
|
#elif $sickbeard.DOWNLOAD_URL
|
||||||
<td></td>
|
<td></td>
|
||||||
#end if
|
#end if
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user