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(''' 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 = {