Compare Plex DB version separately

This commit is contained in:
croneter 2018-10-25 08:43:47 +02:00
parent e0fdfac063
commit 2a97678ba4
2 changed files with 3 additions and 1 deletions

View file

@ -204,7 +204,7 @@ def initialize():
except (utils.OperationalError, TypeError):
init = True
else:
init = utils.compare_version(version, v.MIN_DB_VERSION)
init = not utils.compare_version(version, v.MIN_PLEX_DB_VERSION)
if not init:
return
# Delete all tables

View file

@ -85,6 +85,8 @@ PKC_MACHINE_IDENTIFIER = None
# Minimal PKC version needed for the Kodi database - otherwise need to recreate
MIN_DB_VERSION = '2.5.0'
# Minimal PKC version needed for the Plex database
MIN_PLEX_DB_VERSION = '2.5.0'
# Database paths
DB_VIDEO_VERSION = {