From 791a31bb657bccafe7763791a8b9d04bf74c0562 Mon Sep 17 00:00:00 2001 From: croneter Date: Wed, 25 Mar 2020 16:28:20 +0100 Subject: [PATCH] Fix PKC crashing on devices running Microsoft UWP, e.g. XBox --- resources/lib/utils.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/resources/lib/utils.py b/resources/lib/utils.py index 2da4a378..72127168 100644 --- a/resources/lib/utils.py +++ b/resources/lib/utils.py @@ -542,11 +542,12 @@ 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() - remove_synced_playlists() + if PLAYLIST_SYNC_ENABLED: + from .playlists import remove_synced_playlists + remove_synced_playlists() try: with plex_db.PlexDB() as plexdb: if plexdb.songs_have_been_synced():