Merge pull request #1486 from croneter/py3-fix-direct-paths

Direct Paths: fix several issues with episodes
This commit is contained in:
croneter 2021-05-24 09:43:26 +02:00 committed by GitHub
commit 0e1d6c5832
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

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

View file

@ -84,7 +84,7 @@ COMPANION_PORT = int(_ADDON.getSetting('companionPort'))
PKC_MACHINE_IDENTIFIER = None PKC_MACHINE_IDENTIFIER = None
# Minimal PKC version needed for the Kodi database - otherwise need to recreate # 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 databases - version numbers in tuples should decrease
SUPPORTED_VIDEO_DB = { SUPPORTED_VIDEO_DB = {