Direct Paths: fix several issues with episodes

This commit is contained in:
croneter 2021-05-23 18:03:18 +02:00
parent 2cc60a8f70
commit cfdcfb4bc4

View file

@ -62,8 +62,8 @@ class KodiVideoDB(common.KodiDBBase):
Video DB: Adds all subdirectories to path table while setting a "trail" Video DB: Adds all subdirectories to path table while setting a "trail"
of parent path ids of parent path ids
""" """
parentpath = path_ops.path.abspath( parentpath = path_ops.path.split(path_ops.path.split(path)[0])[0]
path_ops.path.join(path, path_ops.path.pardir)) parentpath = path_ops.append_os_sep(parentpath)
pathid = self.get_path(parentpath) pathid = self.get_path(parentpath)
if pathid is None: if pathid is None:
self.cursor.execute(''' self.cursor.execute('''