From fcda2ec04318d38529aa6beb7a40e988c209f77d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goireDruant?= Date: Thu, 4 May 2023 20:07:33 +0200 Subject: [PATCH] Feat: added idParentPath to tvshows --- jellyfin_kodi/objects/kodi/queries.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/jellyfin_kodi/objects/kodi/queries.py b/jellyfin_kodi/objects/kodi/queries.py index 1e652381..f80bc7c3 100644 --- a/jellyfin_kodi/objects/kodi/queries.py +++ b/jellyfin_kodi/objects/kodi/queries.py @@ -348,14 +348,14 @@ VALUES (?, ?, ?, ?) update_path = """ UPDATE path -SET strPath = ?, strContent = ?, strScraper = ?, noUpdate = ? +SET strPath = ?, strContent = ?, strScraper = ?, noUpdate = ?, idParentPath = ? WHERE idPath = ? """ -update_path_movie_obj = ["{Path}", "movies", "metadata.local", 1, "{PathId}"] -update_path_toptvshow_obj = ["{TopLevel}", "tvshows", "metadata.local", 1, "{TopPathId}"] -update_path_tvshow_obj = ["{Path}", None, None, 1, "{PathId}"] -update_path_episode_obj = ["{Path}", None, None, 1, "{PathId}"] -update_path_mvideo_obj = ["{Path}", "musicvideos", None, 1, "{PathId}"] +update_path_movie_obj = ["{Path}", "movies", "metadata.local", 1, None, "{PathId}"] +update_path_toptvshow_obj = ["{TopLevel}", "tvshows", "metadata.local", 1, None, "{TopPathId}"] +update_path_tvshow_obj = ["{Path}", None, None, 1, "{TopPathId}", "{PathId}"] +update_path_episode_obj = ["{Path}", None, None, 1, None, "{PathId}"] +update_path_mvideo_obj = ["{Path}", "musicvideos", None, 1, None, "{PathId}"] update_file = """ UPDATE files SET idPath = ?, strFilename = ?, dateAdded = ?