From 50c71c70d4c859ec7263bb0af92c14b359ed1649 Mon Sep 17 00:00:00 2001 From: angelblue05 Date: Tue, 29 Dec 2015 17:46:42 -0600 Subject: [PATCH] Fix update music --- resources/lib/itemtypes.py | 6 ++++++ resources/lib/read_embyserver.py | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/resources/lib/itemtypes.py b/resources/lib/itemtypes.py index faf7438a..6a9f7904 100644 --- a/resources/lib/itemtypes.py +++ b/resources/lib/itemtypes.py @@ -1882,6 +1882,8 @@ class Music(Items): def added(self, items, pdialog): + total = len(items) + count = 0 for artist in items: title = artist['Name'] @@ -1896,6 +1898,8 @@ class Music(Items): def added_album(self, items, pdialog): + total = len(items) + count = 0 for album in items: title = album['Name'] @@ -1910,6 +1914,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..f05e9e76 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" ) } 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" ) result = doUtils.downloadUrl(url, parameters=params) items['Items'].extend(result['Items'])