mirror of
https://github.com/SickGear/SickGear.git
synced 2025-01-05 17:43:37 +00:00
Add handling for shows that do not have a total number of episodes.
For rare case where a show can be in the db and added to the indexer and then the episodes removed from the indexer but not the show.
This commit is contained in:
parent
c9f3106d10
commit
d39157f4a9
2 changed files with 3 additions and 1 deletions
|
@ -27,6 +27,7 @@
|
|||
* Change to prevent another scheduled search when one of the same type is already running
|
||||
* Add custom show lists to home page
|
||||
* Change travis to new container builds for faster unit testing
|
||||
* Add handling for shows that do not have a total number of episodes
|
||||
* Change values used for date sorting on home page and episode view for improved compatibility with posix systems
|
||||
|
||||
|
||||
|
|
|
@ -1131,7 +1131,8 @@ class Home(MainHandler):
|
|||
if highest_season < curResult['season'] and 1000 < curResult['airdate'] and UNAIRED < curResult['status']:
|
||||
highest_season = curResult['season']
|
||||
|
||||
latest_season = int(sorted(epCounts['totals'])[-1::][0])
|
||||
if 0 < len(epCounts['totals']):
|
||||
latest_season = int(sorted(epCounts['totals'])[-1::][0])
|
||||
|
||||
display_seasons = []
|
||||
if 1 < highest_season:
|
||||
|
|
Loading…
Reference in a new issue