From 0bf7ada6e3217cc206f7bc40665a407c2067700b Mon Sep 17 00:00:00 2001 From: croneter Date: Fri, 14 Jun 2019 12:46:37 +0200 Subject: [PATCH] Delete Plex video node files when migrating to PKC version 2.8.2 --- resources/lib/migration.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/resources/lib/migration.py b/resources/lib/migration.py index cc9c0f69..854679d2 100644 --- a/resources/lib/migration.py +++ b/resources/lib/migration.py @@ -36,4 +36,10 @@ def check_migration(): from .library_sync.sections import delete_files delete_files() + if not utils.compare_version(last_migration, '2.8.3'): + LOG.info('Migrating to version 2.8.2') + from .library_sync import sections + sections.clear_window_vars() + sections.delete_videonode_files() + utils.settings('last_migrated_PKC_version', value=v.ADDON_VERSION)