mirror of
https://github.com/robweber/xbmcbackup.git
synced 2024-12-22 22:15:23 +01:00
reworked strings again, insert "mode" into gui
This commit is contained in:
parent
138047bd32
commit
d9e31e32ad
@ -8,8 +8,8 @@
|
|||||||
<string id="30011">General</string>
|
<string id="30011">General</string>
|
||||||
<string id="30012">File Selection</string>
|
<string id="30012">File Selection</string>
|
||||||
<string id="30013">Scheduling</string>
|
<string id="30013">Scheduling</string>
|
||||||
<string id="30016">Running Backup</string>
|
<string id="30016">Backup</string>
|
||||||
<string id="30017">Running Restore</string>
|
<string id="30017">Restore</string>
|
||||||
<string id="30018">Browse Path</string>
|
<string id="30018">Browse Path</string>
|
||||||
<string id="30019">Type Path</string>
|
<string id="30019">Type Path</string>
|
||||||
<string id="30020">Browse Remote Path</string>
|
<string id="30020">Browse Remote Path</string>
|
||||||
|
@ -125,11 +125,11 @@ class XbmcBackup:
|
|||||||
self.remote_vfs = ZipFileSystem(xbmc.translatePath("special://temp/xbmc_backup_temp.zip"),"w")
|
self.remote_vfs = ZipFileSystem(xbmc.translatePath("special://temp/xbmc_backup_temp.zip"),"w")
|
||||||
|
|
||||||
self.remote_vfs.set_root(self.remote_vfs.root_path + time.strftime("%Y%m%d%H%M") + "/")
|
self.remote_vfs.set_root(self.remote_vfs.root_path + time.strftime("%Y%m%d%H%M") + "/")
|
||||||
progressBarTitle = progressBarTitle + utils.getString(30016)
|
progressBarTitle = progressBarTitle + utils.getString(30023) + ": " + utils.getString(30016)
|
||||||
elif(mode == self.Restore and self.restore_point != None and self.remote_vfs.root_path != ''):
|
elif(mode == self.Restore and self.restore_point != None and self.remote_vfs.root_path != ''):
|
||||||
if(self.restore_point.split('.')[-1] != 'zip'):
|
if(self.restore_point.split('.')[-1] != 'zip'):
|
||||||
self.remote_vfs.set_root(self.remote_vfs.root_path + self.restore_point + "/")
|
self.remote_vfs.set_root(self.remote_vfs.root_path + self.restore_point + "/")
|
||||||
progressBarTitle = progressBarTitle + utils.getString(30017)
|
progressBarTitle = progressBarTitle + utils.getString(30023) + ": " + utils.getString(30017)
|
||||||
else:
|
else:
|
||||||
#kill the program here
|
#kill the program here
|
||||||
self.remote_vfs = None
|
self.remote_vfs = None
|
||||||
@ -489,10 +489,11 @@ class XbmcBackup:
|
|||||||
|
|
||||||
def _rotateBackups(self):
|
def _rotateBackups(self):
|
||||||
total_backups = int(utils.getSetting('backup_rotation'))
|
total_backups = int(utils.getSetting('backup_rotation'))
|
||||||
|
|
||||||
if(total_backups > 0):
|
if(total_backups > 0):
|
||||||
#get a list of valid backup folders
|
#get a list of valid backup folders
|
||||||
dirs = self.listBackups()
|
dirs = self.listBackups()
|
||||||
|
|
||||||
if(len(dirs) > total_backups):
|
if(len(dirs) > total_backups):
|
||||||
#remove backups to equal total wanted
|
#remove backups to equal total wanted
|
||||||
remove_num = 0
|
remove_num = 0
|
||||||
|
Loading…
Reference in New Issue
Block a user