mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2025-08-06 21:56:32 +00:00
merge upstream master
This commit is contained in:
parent
6e06a6f5f7
commit
b217352681
16 changed files with 0 additions and 166 deletions
|
@ -146,18 +146,3 @@ class JellyfinDatabase():
|
|||
|
||||
def remove_media_by_parent_id(self, *args):
|
||||
self.cursor.execute(QU.delete_media_by_parent_id, args)
|
||||
|
||||
def get_version(self, version=None):
|
||||
|
||||
if version is not None:
|
||||
|
||||
self.cursor.execute(QU.delete_version)
|
||||
self.cursor.execute(QU.add_version, (version,))
|
||||
else:
|
||||
try:
|
||||
self.cursor.execute(QU.get_version)
|
||||
version = self.cursor.fetchone()[0]
|
||||
except Exception as error:
|
||||
LOG.exception(error)
|
||||
|
||||
return version
|
||||
|
|
|
@ -88,7 +88,6 @@ SELECT idVersion
|
|||
FROM version
|
||||
"""
|
||||
|
||||
|
||||
add_reference = """
|
||||
INSERT OR REPLACE INTO jellyfin(jellyfin_id, kodi_id, kodi_fileid, kodi_pathid, jellyfin_type,
|
||||
media_type, parent_id, checksum, media_folder, jellyfin_parent_id)
|
||||
|
@ -113,7 +112,6 @@ INSERT OR REPLACE INTO version(idVersion)
|
|||
VALUES (?)
|
||||
"""
|
||||
|
||||
|
||||
update_reference = """
|
||||
UPDATE jellyfin
|
||||
SET checksum = ?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue