extra check on delete successfull or not

This commit is contained in:
im85288 2015-04-03 13:51:15 +01:00
parent 264758cca8
commit 9fb4743816

View file

@ -186,6 +186,12 @@ def reset():
return return
xbmc.sleep(1000) 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 # remove from addon data directory
addon = xbmcaddon.Addon(id='plugin.video.emby') addon = xbmcaddon.Addon(id='plugin.video.emby')
addondir = xbmc.translatePath(addon.getAddonInfo('profile')) addondir = xbmc.translatePath(addon.getAddonInfo('profile'))