start of kodi ratings

This commit is contained in:
im85288 2016-12-29 18:55:31 +00:00
parent 6a1b574631
commit 863919d696
3 changed files with 34 additions and 1 deletions

View file

@ -309,6 +309,12 @@ class Movies(Items):
total = round(float(runtime), 6)
self.kodi_db.add_playstate(fileid, resume, total, playcount, dateplayed)
# update new ratings Kodi 17 - todo get ratingid for updates from embydb
if self.kodi_version > 16:
ratingid = self.kodi_db.create_entry_rating()
self.kodi_db.add_ratings(ratingid, movieid, "movie", "default", rating, votecount)
return True
def add_updateBoxset(self, boxset):