From cfdcfb4bc4b0208939d22dcae7ce81e5272e2b74 Mon Sep 17 00:00:00 2001 From: croneter Date: Sun, 23 May 2021 18:03:18 +0200 Subject: [PATCH 1/2] Direct Paths: fix several issues with episodes --- resources/lib/kodi_db/video.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/lib/kodi_db/video.py b/resources/lib/kodi_db/video.py index 2c3e8a74..ad79e119 100644 --- a/resources/lib/kodi_db/video.py +++ b/resources/lib/kodi_db/video.py @@ -62,8 +62,8 @@ class KodiVideoDB(common.KodiDBBase): Video DB: Adds all subdirectories to path table while setting a "trail" of parent path ids """ - parentpath = path_ops.path.abspath( - path_ops.path.join(path, path_ops.path.pardir)) + parentpath = path_ops.path.split(path_ops.path.split(path)[0])[0] + parentpath = path_ops.append_os_sep(parentpath) pathid = self.get_path(parentpath) if pathid is None: self.cursor.execute(''' From bf5591354bd5738d036319b77b4526aeaf956b3e Mon Sep 17 00:00:00 2001 From: croneter Date: Mon, 24 May 2021 09:39:26 +0200 Subject: [PATCH 2/2] Force PKC database reset --- resources/lib/variables.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/lib/variables.py b/resources/lib/variables.py index cc298705..c32fea9d 100644 --- a/resources/lib/variables.py +++ b/resources/lib/variables.py @@ -84,7 +84,7 @@ COMPANION_PORT = int(_ADDON.getSetting('companionPort')) PKC_MACHINE_IDENTIFIER = None # Minimal PKC version needed for the Kodi database - otherwise need to recreate -MIN_DB_VERSION = '3.1.3' +MIN_DB_VERSION = '3.2.1' # Supported databases - version numbers in tuples should decrease SUPPORTED_VIDEO_DB = {