mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 04:06:11 +00:00
extra check on delete successfull or not
This commit is contained in:
parent
264758cca8
commit
9fb4743816
1 changed files with 6 additions and 0 deletions
|
@ -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'))
|
||||
|
|
Loading…
Reference in a new issue