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