Change bookmarks from Videoplayer to DVDPlayer
This commit is contained in:
parent
8c10c66bdc
commit
31d42d0b04
1 changed files with 9 additions and 10 deletions
|
@ -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, player, type)
|
idBookmark, idFile, timeInSeconds, totalTimeInSeconds,
|
||||||
|
thumbNailImage, player, playerState, type)
|
||||||
VALUES (?, ?, ?, ?, ?, ?)
|
VALUES (?, ?, ?, ?, ?, ?, ?, ?)
|
||||||
'''
|
'''
|
||||||
)
|
self.cursor.execute(query, (bookmarkId, fileid, resume_seconds,
|
||||||
self.cursor.execute(query, (bookmarkId, fileid, resume_seconds, total_seconds,
|
total_seconds, None, "DVDPlayer",
|
||||||
"VideoPlayer", 1))
|
None, 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
|
||||||
|
|
Loading…
Reference in a new issue