diff --git a/addon.xml b/addon.xml index 3cfb98bc..379a66d0 100644 --- a/addon.xml +++ b/addon.xml @@ -1,7 +1,7 @@ diff --git a/changelog.txt b/changelog.txt index a2eb7220..ae3a8912 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,3 +1,9 @@ +version 1.1.69 +- Fix unicode error for video nodes +- Fix special episode ordering (repair sync can be run) +- Fix deletion via context menu +- Fix music add/update breaking incremental sync + version 1.1.68 - Minor fixes diff --git a/resources/lib/itemtypes.py b/resources/lib/itemtypes.py index f609cb83..07cfef9d 100644 --- a/resources/lib/itemtypes.py +++ b/resources/lib/itemtypes.py @@ -1486,8 +1486,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'): @@ -1864,6 +1868,8 @@ class Music(Items): def added(self, items, pdialog): + total = len(items) + count = 0 for artist in items: title = artist['Name'] @@ -1878,6 +1884,8 @@ class Music(Items): def added_album(self, items, pdialog): + total = len(items) + count = 0 for album in items: title = album['Name'] @@ -1892,6 +1900,8 @@ class Music(Items): def added_song(self, items, pdialog): + total = len(items) + count = 0 for song in items: title = song['Name'] diff --git a/resources/lib/read_embyserver.py b/resources/lib/read_embyserver.py index 921b7fb2..61443e0b 100644 --- a/resources/lib/read_embyserver.py +++ b/resources/lib/read_embyserver.py @@ -81,7 +81,7 @@ class Read_EmbyServer(): "CommunityRating,OfficialRating,CumulativeRunTimeTicks," "Metascore,AirTime,DateCreated,MediaStreams,People,Overview," "CriticRating,CriticRatingSummary,Etag,ProductionLocations," - "OfficialRating,Tags,ProviderIds,RemoteTrailers" + "Tags,ProviderIds,RemoteTrailers,SpecialEpisodeNumbers" ) } result = self.doUtils.downloadUrl(url, parameters=params) @@ -182,7 +182,7 @@ class Read_EmbyServer(): "CommunityRating,OfficialRating,CumulativeRunTimeTicks," "Metascore,AirTime,DateCreated,MediaStreams,People,Overview," "CriticRating,CriticRatingSummary,Etag,ShortOverview,ProductionLocations," - "OfficialRating,Tags,ProviderIds,ParentId,RemoteTrailers" + "Tags,ProviderIds,ParentId,RemoteTrailers,SpecialEpisodeNumbers" ) result = doUtils.downloadUrl(url, parameters=params) items['Items'].extend(result['Items'])