From 5a6f0411f247d16c8669a985b3c2f6a4e036c625 Mon Sep 17 00:00:00 2001 From: tomkat83 Date: Fri, 17 Feb 2017 19:35:51 +0100 Subject: [PATCH] Fix ratings for episodes --- resources/lib/itemtypes.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/resources/lib/itemtypes.py b/resources/lib/itemtypes.py index 80061bd9..fa28b359 100644 --- a/resources/lib/itemtypes.py +++ b/resources/lib/itemtypes.py @@ -979,7 +979,8 @@ class TVShows(Items): # Create the episode entry if v.KODIVERSION >= 17: # add new ratings Kodi 17 - self.kodi_db.add_ratings(self.kodi_db.create_entry_rating(), + rating_id = self.kodi_db.create_entry_rating() + self.kodi_db.add_ratings(rating_id, episodeid, v.KODI_TYPE_EPISODE, "default", @@ -999,7 +1000,7 @@ class TVShows(Items): ?, ?) ''' kodicursor.execute(query, (episodeid, fileid, title, plot, - rating, writer, premieredate, runtime, director, season, + rating_id, writer, premieredate, runtime, director, season, episode, title, showid, airsBeforeSeason, airsBeforeEpisode, playurl, pathid, seasonid, userdata['UserRating']))