mirror of
https://github.com/moparisthebest/SickRage
synced 2024-12-12 19:12:26 -05:00
Fix the home page from failing to load if a show status contains nothing.
This commit is contained in:
parent
7a564d86f4
commit
59f4f44edb
19
CHANGES.md
19
CHANGES.md
@ -26,17 +26,18 @@
|
|||||||
* Fix Layout "Poster" sort of Paused, Ended, and Continuing shows as they were random
|
* Fix Layout "Poster" sort of Paused, Ended, and Continuing shows as they were random
|
||||||
* Fix Layout "Simple" sort of tvrage "New" and "Returning" series by changing status column text to "Continuing"
|
* Fix Layout "Simple" sort of tvrage "New" and "Returning" series by changing status column text to "Continuing"
|
||||||
* Add dark spinner to "Add New Show" (searching indexers), "Add existing shows" (Loading Folders), Coming Eps and all config pages (when saving)
|
* Add dark spinner to "Add New Show" (searching indexers), "Add existing shows" (Loading Folders), Coming Eps and all config pages (when saving)
|
||||||
* Changed notifier test buttons to not run if required field is missing
|
* Change notifier test buttons to not run if required field is missing
|
||||||
* Required fields will now highlight input box and add an icon if field is missing when test is pushed
|
* Require fields will now highlight input box and add an icon if field is missing when test is pushed
|
||||||
* Changed Test Plex Media Server to Test Plex Client as it only tests the client and not the server
|
* Change Test Plex Media Server to Test Plex Client as it only tests the client and not the server
|
||||||
* Styled config_notifications to match new config_general styling
|
* Style config_notifications to match new config_general styling
|
||||||
* Styled config_providers to match new config_general styling
|
* Style config_providers to match new config_general styling
|
||||||
* Removed qtip from providers and converted back to a tab
|
* Remove qtip from providers and converted back to a tab
|
||||||
* Removed superfish-1.4.8.js and supersubs-0.2b.js as they no longer break provider sorting with qtip removed and is no longer required due to new UI
|
* Remove superfish-1.4.8.js and supersubs-0.2b.js as they no longer break provider sorting with qtip removed and is no longer required due to new UI
|
||||||
* Overhaul Config Search Settings in line with General Configuration
|
* Overhaul Config Search Settings in line with General Configuration
|
||||||
* Fixes errors occurring when a show folder is deleted outside of SickRage
|
* Fix errors occurring when a show folder is deleted outside of SickRage
|
||||||
* Added confirmation dialogs back in that were missed due to new UI changes
|
* Add confirmation dialogs back in that were missed due to new UI changes
|
||||||
* Combined delete and remove buttons in to one on individual show pages
|
* Combined delete and remove buttons in to one on individual show pages
|
||||||
|
* Fix the home page from failing to load if a show status contains nothing
|
||||||
|
|
||||||
|
|
||||||
### 0.2.1 (2014-10-22 06:41:00 UTC)
|
### 0.2.1 (2014-10-22 06:41:00 UTC)
|
||||||
|
@ -280,9 +280,9 @@ $myShowList.sort(lambda x, y: cmp(x.name, y.name))
|
|||||||
#set $cur_downloaded = 0
|
#set $cur_downloaded = 0
|
||||||
#set $cur_total = 0
|
#set $cur_total = 0
|
||||||
#set $download_stat_tip = ''
|
#set $download_stat_tip = ''
|
||||||
#if re.search(r'(?i)(?:new|returning)\s*series', $curShow.status):
|
#if None is not $curShow.status and re.search(r'(?i)(?:new|returning)\s*series', $curShow.status)
|
||||||
#set $display_status = 'Continuing'
|
#set $display_status = 'Continuing'
|
||||||
#else:
|
#else
|
||||||
#set $display_status = $curShow.status
|
#set $display_status = $curShow.status
|
||||||
#end if
|
#end if
|
||||||
|
|
||||||
@ -329,13 +329,15 @@ $myShowList.sort(lambda x, y: cmp(x.name, y.name))
|
|||||||
|
|
||||||
#if $cur_airs_next:
|
#if $cur_airs_next:
|
||||||
#set $data_date = $time.mktime($network_timezones.parse_date_time($cur_airs_next,$curShow.airs,$curShow.network).timetuple())
|
#set $data_date = $time.mktime($network_timezones.parse_date_time($cur_airs_next,$curShow.airs,$curShow.network).timetuple())
|
||||||
#else if 'nded' not in $display_status and 1 == int($curShow.paused):
|
#else if None is not $display_status
|
||||||
|
#if 'nded' not in $display_status and 1 == int($curShow.paused)
|
||||||
#set $data_date = '5000000500.0'
|
#set $data_date = '5000000500.0'
|
||||||
#else if 'ontinu' in $display_status:
|
#else if 'ontinu' in $display_status
|
||||||
#set $data_date = '5000000000.0'
|
#set $data_date = '5000000000.0'
|
||||||
#else if 'nded' in $display_status:
|
#else if 'nded' in $display_status
|
||||||
#set $data_date = '5000000100.0'
|
#set $data_date = '5000000100.0'
|
||||||
#else:
|
#end if
|
||||||
|
#else
|
||||||
#set $data_date = '6000000000.0'
|
#set $data_date = '6000000000.0'
|
||||||
#end if
|
#end if
|
||||||
<div class="show" id="show$curShow.indexerid" data-name="$curShow.name" data-date="$data_date" data-network="$curShow.network" data-progress="$progressbar_percent">
|
<div class="show" id="show$curShow.indexerid" data-name="$curShow.name" data-date="$data_date" data-network="$curShow.network" data-progress="$progressbar_percent">
|
||||||
@ -373,14 +375,18 @@ $myShowList.sort(lambda x, y: cmp(x.name, y.name))
|
|||||||
|
|
||||||
<div class="show-date">
|
<div class="show-date">
|
||||||
#if $cur_airs_next
|
#if $cur_airs_next
|
||||||
#set $ldatetime = $network_timezones.parse_date_time($cur_airs_next,$curShow.airs,$curShow.network)
|
#set $ldatetime = $network_timezones.parse_date_time($cur_airs_next,$curShow.airs,$curShow.network)
|
||||||
<span class="${fuzzydate}">$sbdatetime.sbdatetime.sbfdate($ldatetime)</span>
|
<span class="${fuzzydate}">$sbdatetime.sbdatetime.sbfdate($ldatetime)</span>
|
||||||
#else if 'nded' not in $display_status and 1 == int($curShow.paused):
|
|
||||||
Paused
|
|
||||||
#else if $display_status:
|
|
||||||
$display_status
|
|
||||||
#else
|
#else
|
||||||
?
|
#set $output_html = '?'
|
||||||
|
#if None is not $display_status
|
||||||
|
#if 'nded' not in $display_status and 1 == int($curShow.paused)
|
||||||
|
#set $output_html = 'Paused'
|
||||||
|
#else if $display_status
|
||||||
|
#set $output_html = $display_status
|
||||||
|
#end if
|
||||||
|
#end if
|
||||||
|
$output_html
|
||||||
#end if
|
#end if
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -599,7 +605,7 @@ $myShowList.sort(lambda x, y: cmp(x.name, y.name))
|
|||||||
</td>
|
</td>
|
||||||
|
|
||||||
<td align="center">
|
<td align="center">
|
||||||
#if re.search(r'(?i)(?:new|returning)\s*series', $curShow.status):
|
#if None is not $curShow.status and re.search(r'(?i)(?:new|returning)\s*series', $curShow.status)
|
||||||
Continuing
|
Continuing
|
||||||
#else:
|
#else:
|
||||||
$curShow.status
|
$curShow.status
|
||||||
|
Loading…
Reference in New Issue
Block a user