From e26cf09fef16d85159ba5e2deb0cffdc1aaaae9d Mon Sep 17 00:00:00 2001 From: croneter Date: Tue, 10 Sep 2019 17:46:33 +0200 Subject: [PATCH] Force a re-scan of every single Plex item - we might have lost some recently added --- resources/lib/migration.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/resources/lib/migration.py b/resources/lib/migration.py index 3c0adb42..7f4d38ef 100644 --- a/resources/lib/migration.py +++ b/resources/lib/migration.py @@ -71,4 +71,12 @@ def check_migration(): current_playback_type = 3 utils.settings('playType', value=str(current_playback_type)) + if not utils.compare_version(last_migration, '2.9.8'): + LOG.info('Migrating to version 2.9.7') + # Force-scan every single item in the library - seems like we could + # loose some recently added items otherwise + # Caused by 65a921c3cc2068c4a34990d07289e2958f515156 + from . import library_sync + library_sync.force_full_sync() + utils.settings('last_migrated_PKC_version', value=v.ADDON_VERSION)