Merge pull request #987 from croneter/fix-migration

Force-scan every single item in the library - seems like we could lose some recently added items otherwise when updating PKC
This commit is contained in:
croneter 2019-09-22 13:15:19 +02:00 committed by GitHub
commit f8ec9bbf9e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -71,4 +71,12 @@ def check_migration():
current_playback_type = 3 current_playback_type = 3
utils.settings('playType', value=str(current_playback_type)) 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) utils.settings('last_migrated_PKC_version', value=v.ADDON_VERSION)