diff --git a/remove_auth.py b/remove_auth.py new file mode 100644 index 0000000..b76d43d --- /dev/null +++ b/remove_auth.py @@ -0,0 +1,11 @@ +import xbmc +import xbmcgui +import xbmcvfs +import resources.lib.utils as utils + +#triggered from settings.xml - asks if user wants to delete OAuth token information +shouldDelete = xbmcgui.Dialog().yesno(utils.getString(30093),utils.getString(30094),utils.getString(30095),autoclose=7000) + +if(shouldDelete): + #delete any of the known token file types + xbmcvfs.delete(xbmc.translatePath(utils.data_dir() + "tokens.txt")) #dropbox diff --git a/resources/language/English/strings.xml b/resources/language/English/strings.xml index 90762aa..c5c8e27 100644 --- a/resources/language/English/strings.xml +++ b/resources/language/English/strings.xml @@ -84,4 +84,7 @@ The destination may not be writeable Zip archive could not be copied Not all files were copied + Delete Authorization Info + This will delete any OAuth token files + Do you want to do this? diff --git a/resources/settings.xml b/resources/settings.xml index f3aaa6b..d9396b3 100644 --- a/resources/settings.xml +++ b/resources/settings.xml @@ -6,6 +6,7 @@ +