Fix IMDB id for movies

- Fixes #277
This commit is contained in:
tomkat83 2017-04-30 20:41:28 +02:00
parent e05bc6e126
commit 90a5fd58e1

View file

@ -341,7 +341,7 @@ class Movies(Items):
WHERE idMovie = ? WHERE idMovie = ?
''' '''
kodicursor.execute(query, (title, plot, shortplot, tagline, kodicursor.execute(query, (title, plot, shortplot, tagline,
votecount, rating_id, writer, year, imdb, sorttitle, votecount, rating_id, writer, year, uniqueid, sorttitle,
runtime, mpaa, genre, director, title, studio, trailer, runtime, mpaa, genre, director, title, studio, trailer,
country, playurl, pathid, fileid, year, country, playurl, pathid, fileid, year,
userdata['UserRating'], movieid)) userdata['UserRating'], movieid))
@ -372,7 +372,8 @@ class Movies(Items):
rating, rating,
votecount) votecount)
# add new uniqueid Kodi 17 # add new uniqueid Kodi 17
self.kodi_db.add_uniqueid(self.kodi_db.create_entry_uniqueid(), uniqueid = self.kodi_db.create_entry_uniqueid()
self.kodi_db.add_uniqueid(uniqueid,
movieid, movieid,
v.KODI_TYPE_MOVIE, v.KODI_TYPE_MOVIE,
imdb, imdb,
@ -386,8 +387,8 @@ class Movies(Items):
''' '''
kodicursor.execute(query, (movieid, fileid, title, plot, kodicursor.execute(query, (movieid, fileid, title, plot,
shortplot, tagline, votecount, rating_id, writer, year, shortplot, tagline, votecount, rating_id, writer, year,
imdb, sorttitle, runtime, mpaa, genre, director, title, uniqueid, sorttitle, runtime, mpaa, genre, director,
studio, trailer, country, playurl, pathid, year, title, studio, trailer, country, playurl, pathid, year,
userdata['UserRating'])) userdata['UserRating']))
else: else:
query = ''' query = '''