mirror of
https://github.com/SickGear/SickGear.git
synced 2024-12-01 00:43:37 +00:00
Merge pull request #853 from JackDandy/feature/ChangeDisplayShow
Add display unaired season 1 episodes of a new show in view modes reg…
This commit is contained in:
commit
ae17ae902c
2 changed files with 2 additions and 1 deletions
|
@ -2,6 +2,7 @@
|
|||
|
||||
* Change don't fetch caps for disabled nzb providers
|
||||
* Change recent search to use centralised title and URL parser for newznab
|
||||
* Add display unaired season 1 episodes of a new show in regular and pro I view modes
|
||||
|
||||
|
||||
[develop changelog]
|
||||
|
|
|
@ -1380,7 +1380,7 @@ class Home(MainHandler):
|
|||
|
||||
for row in my_db.select('SELECT max(season) as latest FROM tv_episodes WHERE showid = ?'
|
||||
+ ' and 1000 < airdate and ? < status', [showObj.indexerid, UNAIRED]):
|
||||
t.latest_season = row['latest']
|
||||
t.latest_season = row['latest'] or {0: 1, 1: 1, 2: None}.get(sickbeard.DISPLAY_SHOW_VIEWMODE)
|
||||
|
||||
t.season_min = ([], [1])[2 < t.latest_season] + [t.latest_season]
|
||||
t.other_seasons = (list(set(all_seasons) - set(t.season_min)), [])[display_show_minimum]
|
||||
|
|
Loading…
Reference in a new issue