Fix movies not showing up on switching PMS
This commit is contained in:
parent
825237dfed
commit
512479e47e
1 changed files with 1 additions and 1 deletions
|
@ -464,7 +464,6 @@ def wipe_database():
|
||||||
music = settings('enableMusic') == 'true'
|
music = settings('enableMusic') == 'true'
|
||||||
kodi_db.wipe_dbs(music)
|
kodi_db.wipe_dbs(music)
|
||||||
plex_db.wipe()
|
plex_db.wipe()
|
||||||
plex_db.initialize()
|
|
||||||
# Delete all synced playlists
|
# Delete all synced playlists
|
||||||
for path in playlist_paths:
|
for path in playlist_paths:
|
||||||
try:
|
try:
|
||||||
|
@ -479,6 +478,7 @@ def wipe_database():
|
||||||
# reset the install run flag
|
# reset the install run flag
|
||||||
settings('SyncInstallRunDone', value="false")
|
settings('SyncInstallRunDone', value="false")
|
||||||
settings('lastfullsync', value="0")
|
settings('lastfullsync', value="0")
|
||||||
|
init_dbs()
|
||||||
LOG.info('Wiping done')
|
LOG.info('Wiping done')
|
||||||
if settings('kodi_db_has_been_wiped_clean') != 'true':
|
if settings('kodi_db_has_been_wiped_clean') != 'true':
|
||||||
# Root cause is sqlite WAL mode - Kodi might still have DB access open
|
# Root cause is sqlite WAL mode - Kodi might still have DB access open
|
||||||
|
|
Loading…
Reference in a new issue