Fix ratings for episodes

This commit is contained in:
tomkat83 2017-02-17 19:35:51 +01:00
parent a7adfa1cc5
commit 5a6f0411f2

View file

@ -979,7 +979,8 @@ class TVShows(Items):
# Create the episode entry # Create the episode entry
if v.KODIVERSION >= 17: if v.KODIVERSION >= 17:
# add new ratings Kodi 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, episodeid,
v.KODI_TYPE_EPISODE, v.KODI_TYPE_EPISODE,
"default", "default",
@ -999,7 +1000,7 @@ class TVShows(Items):
?, ?) ?, ?)
''' '''
kodicursor.execute(query, (episodeid, fileid, title, plot, kodicursor.execute(query, (episodeid, fileid, title, plot,
rating, writer, premieredate, runtime, director, season, rating_id, writer, premieredate, runtime, director, season,
episode, title, showid, airsBeforeSeason, episode, title, showid, airsBeforeSeason,
airsBeforeEpisode, playurl, pathid, seasonid, airsBeforeEpisode, playurl, pathid, seasonid,
userdata['UserRating'])) userdata['UserRating']))