Ensure we resync all Plex playlists to Kodi when updating PKC

This commit is contained in:
croneter 2020-02-27 16:38:53 +01:00
parent 25f972f30f
commit f573a29d37

View file

@ -84,4 +84,10 @@ def check_migration():
from . import library_sync from . import library_sync
library_sync.force_full_sync() library_sync.force_full_sync()
if not utils.compare_version(last_migration, '2.11.3'):
LOG.info('Migrating to version 2.11.2')
# Re-sync all playlists to Kodi
from .playlists import remove_synced_playlists
remove_synced_playlists()
utils.settings('last_migrated_PKC_version', value=v.ADDON_VERSION) utils.settings('last_migrated_PKC_version', value=v.ADDON_VERSION)