bring back jarvis compatibility

This commit is contained in:
im85288 2017-01-01 16:58:11 +00:00
parent cb30feba46
commit b572d60cd9
3 changed files with 12 additions and 12 deletions

View file

@ -240,19 +240,19 @@ class Movies(Items):
log.info("UPDATE movie itemid: %s - Title: %s", itemid, title)
# update new ratings Kodi 17
if self.kodi_version > 16:
if self.kodi_version >= 17:
ratingid = self.kodi_db.get_ratingid(movieid)
self.kodi_db.update_ratings(movieid, "movie", "default", rating, votecount,ratingid)
# update new uniqueid Kodi 17
if self.kodi_version > 16:
if self.kodi_version >= 17:
uniqueid = self.kodi_db.get_uniqueid(movieid)
self.kodi_db.update_uniqueid(movieid, "movie", imdb, "imdb",uniqueid)
# Update the movie entry
if self.kodi_version > 16:
if self.kodi_version >= 17:
self.kodi_db.update_movie_17(title, plot, shortplot, tagline, votecount, uniqueid,
writer, year, uniqueid, sorttitle, runtime, mpaa, genre,
director, title, studio, trailer, country, year,