diff --git a/resources/lib/objects/tvshows.py b/resources/lib/objects/tvshows.py index 8ee56cd1..fc19a7d1 100644 --- a/resources/lib/objects/tvshows.py +++ b/resources/lib/objects/tvshows.py @@ -648,13 +648,13 @@ class TVShows(Items): if self.kodi_version >= 17: ratingid = self.kodi_db.create_entry_rating() - self.kodi_db.add_ratings(ratingid, showid, "episode", "default", rating, votecount) + self.kodi_db.add_ratings(ratingid, episodeid, "episode", "default", rating, votecount) # add new uniqueid Kodi 17 if self.kodi_version >= 17: uniqueid = self.kodi_db.create_entry_uniqueid() - self.kodi_db.add_uniqueid(uniqueid, showid, "episode", tvdb, "tvdb") + self.kodi_db.add_uniqueid(uniqueid, episodeid, "episode", tvdb, "tvdb") # Add path pathid = self.kodi_db.add_path(path)