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:
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue