diff --git a/addon.xml b/addon.xml index 9fc63e2..150d863 100644 --- a/addon.xml +++ b/addon.xml @@ -1,8 +1,8 @@  + name="Backup" version="1.0.3" provider-name="robweber"> - + diff --git a/changelog.txt b/changelog.txt index 3381436..e460b78 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,3 +1,11 @@ +Version 1.0.3 + +added "delete auth" dialog to delete oauth files in settings + +Version 1.0.2 + +updated xbmc.python version to 2.19.0 - should be helix only + Version 1.0.0 rebranded as "Backup" 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 c839c1b..6d9b291 100644 --- a/resources/language/English/strings.xml +++ b/resources/language/English/strings.xml @@ -84,5 +84,8 @@ The destination may not be writeable Zip archive could not be copied Not all files were copied - Google Drive + Delete Authorization Info + This will delete any OAuth token files + Do you want to do this? + Google Drive diff --git a/resources/settings.xml b/resources/settings.xml index 4084a3f..ae6ab87 100644 --- a/resources/settings.xml +++ b/resources/settings.xml @@ -8,6 +8,7 @@ +