From 2e9d9eab652c63f2e09ccb78ee270766ef9697b8 Mon Sep 17 00:00:00 2001 From: angelblue05 Date: Sat, 23 Apr 2016 19:11:29 -0500 Subject: [PATCH] Fix VoteCount --- resources/lib/read_embyserver.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/resources/lib/read_embyserver.py b/resources/lib/read_embyserver.py index a04b452e..3b20fc52 100644 --- a/resources/lib/read_embyserver.py +++ b/resources/lib/read_embyserver.py @@ -230,7 +230,7 @@ class Read_EmbyServer(): "Metascore,AirTime,DateCreated,MediaStreams,People,Overview," "CriticRating,CriticRatingSummary,Etag,ShortOverview,ProductionLocations," "Tags,ProviderIds,ParentId,RemoteTrailers,SpecialEpisodeNumbers," - "MediaSources" + "MediaSources,VoteCount" ) result = self.doUtils(url, parameters=params) try: @@ -532,7 +532,9 @@ class Read_EmbyServer(): self.doUtils("{server}/emby/Users/{UserId}/Items/%s/Rating?Likes=false&format=json" % itemid, action_type="POST") elif deletelike: self.doUtils("{server}/emby/Users/{UserId}/Items/%s/Rating?format=json" % itemid, action_type="DELETE") + else: + self.logMsg("Error processing user rating.", 1) self.logMsg("Update user rating to emby for itemid: %s " "| like: %s | favourite: %s | deletelike: %s" - % (itemid, like, favourite, deletelike), 1) \ No newline at end of file + % (itemid, like, favourite, deletelike), 1)