Code optimization

This commit is contained in:
tomkat83 2017-02-13 20:46:51 +01:00
parent f5198bf937
commit 7956639a0e

View file

@ -638,8 +638,7 @@ class TVShows(Items):
log.info("ADD tvshow itemid: %s - Title: %s" % (itemid, title)) log.info("ADD tvshow itemid: %s - Title: %s" % (itemid, title))
if v.KODIVERSION >= 17: if v.KODIVERSION >= 17:
# add new ratings Kodi 17 # add new ratings Kodi 17
ratingid = self.kodi_db.create_entry_rating() self.kodi_db.add_ratings(self.kodi_db.create_entry_rating(),
self.kodi_db.add_ratings(ratingid,
showid, showid,
v.KODI_TYPE_SHOW, v.KODI_TYPE_SHOW,
"default", "default",