Fix AirsAfterSeason

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

View file

@ -1504,6 +1504,10 @@ class TVShows(Items):
season = -1 season = -1
# Specials ordering within season # Specials ordering within season
if item.get('AirsAfterSeasonNumber'):
airsBeforeSeason = item['AirsAfterSeasonNumber']
airsBeforeEpisode = 4096 # Kodi default number for afterseason ordering
else:
airsBeforeSeason = item.get('AirsBeforeSeasonNumber', "-1") airsBeforeSeason = item.get('AirsBeforeSeasonNumber', "-1")
airsBeforeEpisode = item.get('AirsBeforeEpisodeNumber', "-1") airsBeforeEpisode = item.get('AirsBeforeEpisodeNumber', "-1")