From 512479e47e73529bfb584206d045c58cf9f2c588 Mon Sep 17 00:00:00 2001 From: croneter Date: Fri, 21 Dec 2018 17:22:30 +0100 Subject: [PATCH] Fix movies not showing up on switching PMS --- resources/lib/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/lib/utils.py b/resources/lib/utils.py index e7348f6b..62c5fa17 100644 --- a/resources/lib/utils.py +++ b/resources/lib/utils.py @@ -464,7 +464,6 @@ def wipe_database(): music = settings('enableMusic') == 'true' kodi_db.wipe_dbs(music) plex_db.wipe() - plex_db.initialize() # Delete all synced playlists for path in playlist_paths: try: @@ -479,6 +478,7 @@ def wipe_database(): # reset the install run flag settings('SyncInstallRunDone', value="false") settings('lastfullsync', value="0") + init_dbs() LOG.info('Wiping done') if settings('kodi_db_has_been_wiped_clean') != 'true': # Root cause is sqlite WAL mode - Kodi might still have DB access open