Fix AirsAfterSeason

This commit is contained in:
angelblue05 2015-12-30 03:21:49 -06:00
parent 903b44b56e
commit 39ac41647e

View file

@ -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'):