Change bookmarks from Videoplayer to DVDPlayer

This commit is contained in:
croneter 2018-02-08 16:02:29 +01:00
parent 8c10c66bdc
commit 31d42d0b04

View file

@ -992,16 +992,15 @@ class Kodidb_Functions():
if resume_seconds: if resume_seconds:
self.cursor.execute("select coalesce(max(idBookmark),0) from bookmark") self.cursor.execute("select coalesce(max(idBookmark),0) from bookmark")
bookmarkId = self.cursor.fetchone()[0] + 1 bookmarkId = self.cursor.fetchone()[0] + 1
query = ( query = '''
''' INSERT INTO bookmark(
INSERT INTO bookmark( idBookmark, idFile, timeInSeconds, totalTimeInSeconds,
idBookmark, idFile, timeInSeconds, totalTimeInSeconds, player, type) thumbNailImage, player, playerState, type)
VALUES (?, ?, ?, ?, ?, ?, ?, ?)
VALUES (?, ?, ?, ?, ?, ?) '''
''' self.cursor.execute(query, (bookmarkId, fileid, resume_seconds,
) total_seconds, None, "DVDPlayer",
self.cursor.execute(query, (bookmarkId, fileid, resume_seconds, total_seconds, None, 1))
"VideoPlayer", 1))
def addTags(self, kodiid, tags, mediatype): def addTags(self, kodiid, tags, mediatype):
# First, delete any existing tags associated to the id # First, delete any existing tags associated to the id