From 9fb474381696b86811ae8c79e026cc2d509c726d Mon Sep 17 00:00:00 2001 From: im85288 Date: Fri, 3 Apr 2015 13:51:15 +0100 Subject: [PATCH] extra check on delete successfull or not --- resources/lib/Utils.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/resources/lib/Utils.py b/resources/lib/Utils.py index 4b0d12a0..d51a34ce 100644 --- a/resources/lib/Utils.py +++ b/resources/lib/Utils.py @@ -186,6 +186,12 @@ def reset(): return xbmc.sleep(1000) + # extra check on the database to see it has been removed + if xbmcvfs.exists(getKodiDBPath()): + dialog = xbmcgui.Dialog() + dialog.ok('Error', 'The video database could not be deleted, this will need to be done manually. First remove: '+getKodiDBPath() + ' Then delete the plugin from your addon_data directory and restart Kodi') + return + # remove from addon data directory addon = xbmcaddon.Addon(id='plugin.video.emby') addondir = xbmc.translatePath(addon.getAddonInfo('profile'))