diff --git a/default.py b/default.py index df68df5..08bd81b 100644 --- a/default.py +++ b/default.py @@ -90,14 +90,15 @@ class XbmcBackup: def __init__(self): self.local_path = xbmc.translatePath("special://home") - - if(self.Addon.getSetting('remote_path_2') != '' and vfs.exists(self.Addon.getSetting('remote_path_2'))): + + if(self.Addon.getSetting('remote_selection') == '1' and vfs.exists(self.Addon.getSetting('remote_path_2'))): + xbmc.log(str(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 vfs.exists(self.Addon.getSetting("remote_path"))): + elif(self.Addon.getSetting('remote_selection') == '0' and vfs.exists(self.Addon.getSetting("remote_path"))): self.remote_path = self.Addon.getSetting("remote_path") - if(self.Addon.getSetting("backup_name") != ''): + if(self.Addon.getSetting("backup_name") != '' and self.remote_path != ''): self.remote_path = self.remote_path + self.Addon.getSetting("backup_name") + "/" else: self.remote_path = "" diff --git a/resources/language/English/strings.xml b/resources/language/English/strings.xml index c90da25..75e1818 100644 --- a/resources/language/English/strings.xml +++ b/resources/language/English/strings.xml @@ -9,7 +9,8 @@ Run Silent Mode Type Remote Path - + Remote Path Type + User Addons Addon Data Database diff --git a/resources/settings.xml b/resources/settings.xml index 3712b4a..38be3c6 100644 --- a/resources/settings.xml +++ b/resources/settings.xml @@ -2,8 +2,9 @@ - - + + +