mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 10:16:11 +00:00
Fix AirsAfterSeason
This commit is contained in:
parent
903b44b56e
commit
39ac41647e
1 changed files with 6 additions and 2 deletions
|
@ -1504,8 +1504,12 @@ class TVShows(Items):
|
|||
season = -1
|
||||
|
||||
# Specials ordering within season
|
||||
airsBeforeSeason = item.get('AirsBeforeSeasonNumber', "-1")
|
||||
airsBeforeEpisode = item.get('AirsBeforeEpisodeNumber', "-1")
|
||||
if item.get('AirsAfterSeasonNumber'):
|
||||
airsBeforeSeason = item['AirsAfterSeasonNumber']
|
||||
airsBeforeEpisode = 4096 # Kodi default number for afterseason ordering
|
||||
else:
|
||||
airsBeforeSeason = item.get('AirsBeforeSeasonNumber', "-1")
|
||||
airsBeforeEpisode = item.get('AirsBeforeEpisodeNumber', "-1")
|
||||
|
||||
# Append multi episodes to title
|
||||
if item.get('IndexNumberEnd'):
|
||||
|
|
Loading…
Reference in a new issue