Merge pull request #12 from robweber/master

Update Frodo branch
This commit is contained in:
robweber 2012-08-28 17:18:18 -07:00
commit dff28f2653

View File

@ -118,8 +118,7 @@ class XbmcBackup:
#append backup folder name #append backup folder name
if(int(self.addon.getSetting('addon_mode')) == 0 and self.remote_path != ''): if(int(self.addon.getSetting('addon_mode')) == 0 and self.remote_path != ''):
date_today = time.localtime(time.time()) self.remote_path = self.remote_path + time.strftime("%Y%m%d") + "/"
self.remote_path = self.remote_path + str(date_today[1]) + str(date_today[2]) + str(date_today[0]) + "/"
elif(int(self.addon.getSetting('addon_mode')) == 1 and self.addon.getSetting("backup_name") != '' and self.remote_path != ''): elif(int(self.addon.getSetting('addon_mode')) == 1 and self.addon.getSetting("backup_name") != '' and self.remote_path != ''):
self.remote_path = self.remote_path + self.addon.getSetting("backup_name") + "/" self.remote_path = self.remote_path + self.addon.getSetting("backup_name") + "/"
else: else: