From cfdcfb4bc4b0208939d22dcae7ce81e5272e2b74 Mon Sep 17 00:00:00 2001 From: croneter Date: Sun, 23 May 2021 18:03:18 +0200 Subject: [PATCH] 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('''