From 2a97678ba4b1a0d2537ddba99ccc19c2f40ae2e9 Mon Sep 17 00:00:00 2001 From: croneter Date: Thu, 25 Oct 2018 08:43:47 +0200 Subject: [PATCH] Compare Plex DB version separately --- resources/lib/plex_db/common.py | 2 +- resources/lib/variables.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/resources/lib/plex_db/common.py b/resources/lib/plex_db/common.py index ed8cebef..937ed2b3 100644 --- a/resources/lib/plex_db/common.py +++ b/resources/lib/plex_db/common.py @@ -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 diff --git a/resources/lib/variables.py b/resources/lib/variables.py index 71c08eae..62e1977c 100644 --- a/resources/lib/variables.py +++ b/resources/lib/variables.py @@ -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 = {