Reinstate airsbefore default value -1

This commit is contained in:
angelblue05 2016-08-26 01:33:46 -05:00
parent d5ee31e76e
commit 1222d4d906

View file

@ -1277,8 +1277,8 @@ class TVShows(Items):
airsBeforeSeason = item['AirsAfterSeasonNumber'] airsBeforeSeason = item['AirsAfterSeasonNumber']
airsBeforeEpisode = 4096 # Kodi default number for afterseason ordering airsBeforeEpisode = 4096 # Kodi default number for afterseason ordering
else: else:
airsBeforeSeason = item.get('AirsBeforeSeasonNumber') airsBeforeSeason = item.get('AirsBeforeSeasonNumber', -1)
airsBeforeEpisode = item.get('AirsBeforeEpisodeNumber') airsBeforeEpisode = item.get('AirsBeforeEpisodeNumber', -1)
# Append multi episodes to title # Append multi episodes to title
if item.get('IndexNumberEnd'): if item.get('IndexNumberEnd'):