Migration: make sure user needs to sign in again after PKC update

This commit is contained in:
croneter 2020-06-09 09:54:47 +02:00
parent da671c8ee5
commit f747086957
1 changed files with 9 additions and 0 deletions

View File

@ -90,4 +90,13 @@ def check_migration():
from .playlists import remove_synced_playlists
remove_synced_playlists()
if not utils.compare_version(last_migration, '2.12.2'):
LOG.info('Migrating to version 2.12.1')
# Sign user out to make sure he needs to sign in again
utils.settings('username', value='')
utils.settings('userid', value='')
utils.settings('plex_restricteduser', value='')
utils.settings('accessToken', value='')
utils.settings('plexAvatar', value='')
utils.settings('last_migrated_PKC_version', value=v.ADDON_VERSION)