diff --git a/README.txt b/README.txt index 11a2c08..637308b 100644 --- a/README.txt +++ b/README.txt @@ -5,7 +5,7 @@ I've had to recover my database, thumbnails, and source configuration enough tim Usage: -In the addon settings you can define a remote path for the destination of your xbmc files. You must also include a backup folder name, all of your files will be in this folder once the backup runs. +In the addon settings you can define a remote path for the destination of your xbmc files. You must also include a backup folder name, all of your files will be in this folder once the backup runs. Please note that the typed path will supercede the browsed path - only one will be used. On the Backup Selection page you can select which items from your user profile folder will be sent to the backup location. By default all are turned on except the Addon Data directory. diff --git a/addon.xml b/addon.xml index b8f658e..311c711 100644 --- a/addon.xml +++ b/addon.xml @@ -1,6 +1,6 @@ + name="XBMC Backup" version="0.0.5" provider-name="robweber"> @@ -8,7 +8,7 @@ executable - Backup abd restore your XBMC database and configuration files in the event of a crash or file corruption. + Backup and restore your XBMC database and configuration files in the event of a crash or file corruption. Ever hosed your XBMC configuration and wished you'd had a backup? Now you can with one easy click. You can export your database, playlist, thumbnails, addons and other configuration details to any source writeable by XBMC. all diff --git a/default.py b/default.py index 690858b..753a934 100644 --- a/default.py +++ b/default.py @@ -94,9 +94,17 @@ class XbmcBackup: def __init__(self): self.local_path = xbmc.translatePath("special://home") - if(self.Addon.getSetting('remote_path') != '' and self.Addon.getSetting("backup_name") != ''): - self.remote_path = self.Addon.getSetting("remote_path") + self.Addon.getSetting('backup_name') + "/" - + if(self.Addon.getSetting('remote_path_2') != '' and xbmcvfs.exists(self.Addon.getSetting('remote_path_2'))): + self.remote_path = self.Addon.getSetting('remote_path_2') + self.Addon.setSetting("remote_path","") + elif(self.Addon.getSetting('remote_path') != '' and xbmcvfs.exists(self.Addon.getSetting("remote_path"))): + self.remote_path = self.Addon.getSetting("remote_path") + + if(self.Addon.getSetting("backup_name") != ''): + self.remote_path = self.remote_path + self.Addon.getSetting("backup_name") + "/" + else: + self.remote_path = "" + self.fileManager = FileManager(self.Addon.getAddonInfo('profile')) self.log("Starting") diff --git a/resources/language/English/strings.xml b/resources/language/English/strings.xml index f26e003..c90da25 100644 --- a/resources/language/English/strings.xml +++ b/resources/language/English/strings.xml @@ -4,11 +4,12 @@ General File Selection - Remote Path + Browse Remote Path Backup Folder Name Run Silent Mode - + Type Remote Path + User Addons Addon Data Database diff --git a/resources/settings.xml b/resources/settings.xml index 353ac50..39f57fa 100644 --- a/resources/settings.xml +++ b/resources/settings.xml @@ -3,6 +3,7 @@ +