mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2025-12-08 16:13:18 +00:00
Adjust music video premiere
This commit is contained in:
parent
e2a183a08b
commit
9a50392d0c
2 changed files with 36 additions and 4 deletions
|
|
@ -50,6 +50,19 @@ class KodiMusicVideos(KodiItems):
|
|||
)
|
||||
self.cursor.execute(query, (args))
|
||||
|
||||
def add_musicvideo_16(self, *args):
|
||||
|
||||
query = (
|
||||
'''
|
||||
INSERT INTO musicvideo(
|
||||
idMVideo, idFile, c00, c04, c05, c06, c07, c08, c09, c10, c11, c12)
|
||||
|
||||
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
|
||||
'''
|
||||
)
|
||||
self.cursor.execute(query, (args))
|
||||
|
||||
|
||||
def update_musicvideo(self, *args):
|
||||
|
||||
query = ' '.join((
|
||||
|
|
@ -61,6 +74,17 @@ class KodiMusicVideos(KodiItems):
|
|||
))
|
||||
self.cursor.execute(query, (args))
|
||||
|
||||
def update_musicvideo_16(self, *args):
|
||||
|
||||
query = ' '.join((
|
||||
|
||||
"UPDATE musicvideo",
|
||||
"SET c00 = ?, c04 = ?, c05 = ?, c06 = ?, c07 = ?, c08 = ?, c09 = ?, c10 = ?,",
|
||||
"c11 = ?, c12 = ?"
|
||||
"WHERE idMVideo = ?"
|
||||
))
|
||||
self.cursor.execute(query, (args))
|
||||
|
||||
def remove_musicvideo(self, kodi_id, file_id):
|
||||
self.cursor.execute("DELETE FROM musicvideo WHERE idMVideo = ?", (kodi_id,))
|
||||
self.cursor.execute("DELETE FROM files WHERE idFile = ?", (file_id,))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue