From 450c2a6ba662dd90106d2e873c634fadabdf36aa Mon Sep 17 00:00:00 2001 From: im85288 Date: Sun, 1 Jan 2017 16:59:34 +0000 Subject: [PATCH] bring back jarvis compatibility --- resources/lib/objects/movies.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/resources/lib/objects/movies.py b/resources/lib/objects/movies.py index 85adf5fa..3c3f67b2 100644 --- a/resources/lib/objects/movies.py +++ b/resources/lib/objects/movies.py @@ -270,13 +270,13 @@ class Movies(Items): log.info("ADD movie itemid: %s - Title: %s", itemid, title) # add new ratings Kodi 17 - if self.kodi_version > 16: + if self.kodi_version >= 17: ratingid = self.kodi_db.create_entry_rating() self.kodi_db.add_ratings(ratingid, movieid, "movie", "default", rating, votecount) # add new uniqueid Kodi 17 - if self.kodi_version > 16: + if self.kodi_version >= 17: uniqueid = self.kodi_db.create_entry_uniqueid() self.kodi_db.add_uniqueid(uniqueid, movieid, "movie", imdb, "imdb") @@ -287,7 +287,7 @@ class Movies(Items): fileid = self.kodi_db.add_file(filename, pathid) # Create the movie entry - if self.kodi_version > 16: + if self.kodi_version >= 17: self.kodi_db.add_movie_17(movieid, fileid, title, plot, shortplot, tagline, votecount, uniqueid, writer, year, uniqueid, sorttitle, runtime, mpaa, genre, director, title, studio, trailer,