Fix PKC crashing on devices running Microsoft UWP, e.g. XBox

This commit is contained in:
croneter 2020-03-25 16:28:20 +01:00
parent e3d4a7f7ca
commit 791a31bb65

View file

@ -542,10 +542,11 @@ def wipe_database(reboot=True):
"""
LOG.warn('Start wiping')
from .library_sync.sections import delete_files
from .library_sync.common import PLAYLIST_SYNC_ENABLED
from . import kodi_db, plex_db
from .playlists import remove_synced_playlists
# Clean up the playlists and video nodes
delete_files()
if PLAYLIST_SYNC_ENABLED:
from .playlists import remove_synced_playlists
remove_synced_playlists()
try:
with plex_db.PlexDB() as plexdb: