Merge pull request #1486 from croneter/py3-fix-direct-paths
Direct Paths: fix several issues with episodes
This commit is contained in:
commit
0e1d6c5832
2 changed files with 3 additions and 3 deletions
|
@ -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('''
|
||||||
|
|
|
@ -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 = {
|
||||||
|
|
Loading…
Reference in a new issue