Compare Plex DB version separately
This commit is contained in:
parent
e0fdfac063
commit
2a97678ba4
2 changed files with 3 additions and 1 deletions
|
@ -204,7 +204,7 @@ def initialize():
|
||||||
except (utils.OperationalError, TypeError):
|
except (utils.OperationalError, TypeError):
|
||||||
init = True
|
init = True
|
||||||
else:
|
else:
|
||||||
init = utils.compare_version(version, v.MIN_DB_VERSION)
|
init = not utils.compare_version(version, v.MIN_PLEX_DB_VERSION)
|
||||||
if not init:
|
if not init:
|
||||||
return
|
return
|
||||||
# Delete all tables
|
# Delete all tables
|
||||||
|
|
|
@ -85,6 +85,8 @@ 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 = '2.5.0'
|
MIN_DB_VERSION = '2.5.0'
|
||||||
|
# Minimal PKC version needed for the Plex database
|
||||||
|
MIN_PLEX_DB_VERSION = '2.5.0'
|
||||||
|
|
||||||
# Database paths
|
# Database paths
|
||||||
DB_VIDEO_VERSION = {
|
DB_VIDEO_VERSION = {
|
||||||
|
|
Loading…
Reference in a new issue