From 1222d4d9067d3bcbf80634401f0890132063d412 Mon Sep 17 00:00:00 2001 From: angelblue05 Date: Fri, 26 Aug 2016 01:33:46 -0500 Subject: [PATCH] Reinstate airsbefore default value -1 --- resources/lib/itemtypes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/lib/itemtypes.py b/resources/lib/itemtypes.py index 51abdf3c..1ce7bfe2 100644 --- a/resources/lib/itemtypes.py +++ b/resources/lib/itemtypes.py @@ -1277,8 +1277,8 @@ class TVShows(Items): airsBeforeSeason = item['AirsAfterSeasonNumber'] airsBeforeEpisode = 4096 # Kodi default number for afterseason ordering else: - airsBeforeSeason = item.get('AirsBeforeSeasonNumber') - airsBeforeEpisode = item.get('AirsBeforeEpisodeNumber') + airsBeforeSeason = item.get('AirsBeforeSeasonNumber', -1) + airsBeforeEpisode = item.get('AirsBeforeEpisodeNumber', -1) # Append multi episodes to title if item.get('IndexNumberEnd'):