From 31d42d0b04736c793674f068294436d76bac33bb Mon Sep 17 00:00:00 2001 From: croneter Date: Thu, 8 Feb 2018 16:02:29 +0100 Subject: [PATCH] Change bookmarks from Videoplayer to DVDPlayer --- resources/lib/kodidb_functions.py | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/resources/lib/kodidb_functions.py b/resources/lib/kodidb_functions.py index 592e02ae..4b8b1d87 100644 --- a/resources/lib/kodidb_functions.py +++ b/resources/lib/kodidb_functions.py @@ -992,16 +992,15 @@ class Kodidb_Functions(): if resume_seconds: self.cursor.execute("select coalesce(max(idBookmark),0) from bookmark") bookmarkId = self.cursor.fetchone()[0] + 1 - query = ( - ''' - INSERT INTO bookmark( - idBookmark, idFile, timeInSeconds, totalTimeInSeconds, player, type) - - VALUES (?, ?, ?, ?, ?, ?) - ''' - ) - self.cursor.execute(query, (bookmarkId, fileid, resume_seconds, total_seconds, - "VideoPlayer", 1)) + query = ''' + INSERT INTO bookmark( + idBookmark, idFile, timeInSeconds, totalTimeInSeconds, + thumbNailImage, player, playerState, type) + VALUES (?, ?, ?, ?, ?, ?, ?, ?) + ''' + self.cursor.execute(query, (bookmarkId, fileid, resume_seconds, + total_seconds, None, "DVDPlayer", + None, 1)) def addTags(self, kodiid, tags, mediatype): # First, delete any existing tags associated to the id