mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2025-12-14 02:53:19 +00:00
WIP: other path update approach
Use jellyfin db to determine parent path id
This commit is contained in:
parent
fcda2ec043
commit
5b0fecf50c
3 changed files with 47 additions and 0 deletions
|
|
@ -71,6 +71,24 @@ class JellyfinDatabase():
|
|||
except TypeError:
|
||||
return
|
||||
|
||||
def get_season_kodi_parent_path_id(self, *args):
|
||||
|
||||
try:
|
||||
self.cursor.execute(QU.get_season_kodi_parent_path_id_obj, args)
|
||||
|
||||
return self.cursor.fetchone()[0]
|
||||
except TypeError:
|
||||
return
|
||||
|
||||
def get_episode_kodi_parent_path_id(self, *args):
|
||||
|
||||
try:
|
||||
self.cursor.execute(QU.get_episode_kodi_parent_path_id_obj, args)
|
||||
|
||||
return self.cursor.fetchone()[0]
|
||||
except TypeError:
|
||||
return
|
||||
|
||||
def get_full_item_by_kodi_id(self, *args):
|
||||
|
||||
try:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue