mirror of
https://github.com/robweber/xbmcbackup.git
synced 2024-11-15 04:45:49 +01:00
Merge branch 'frodo-dev' of https://github.com/robweber/xbmcbackup into dropbox
This commit is contained in:
commit
c4a8e60729
@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||||
<addon id="script.xbmcbackup"
|
<addon id="script.xbmcbackup"
|
||||||
name="XBMC Backup" version="0.2.1" provider-name="robweber">
|
name="XBMC Backup" version="0.2.2" provider-name="robweber">
|
||||||
<requires>
|
<requires>
|
||||||
<import addon="xbmc.python" version="2.0"/>
|
<import addon="xbmc.python" version="2.0"/>
|
||||||
</requires>
|
</requires>
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
[b]Version 0.2.2[/b]
|
||||||
|
|
||||||
|
fix for backup rotation sort
|
||||||
|
|
||||||
[b]Version 0.2.1[/b]
|
[b]Version 0.2.1[/b]
|
||||||
|
|
||||||
added ability to rotate backups, keeping a set number of days
|
added ability to rotate backups, keeping a set number of days
|
||||||
|
@ -171,6 +171,7 @@ class XbmcBackup:
|
|||||||
dirs,files = self.vfs.listdir(self.remote_root)
|
dirs,files = self.vfs.listdir(self.remote_root)
|
||||||
if(len(dirs) > total_backups):
|
if(len(dirs) > total_backups):
|
||||||
#remove backups to equal total wanted
|
#remove backups to equal total wanted
|
||||||
|
dirs.sort()
|
||||||
remove_num = len(dirs) - total_backups - 1
|
remove_num = len(dirs) - total_backups - 1
|
||||||
self.filesTotal = self.filesTotal + remove_num + 1
|
self.filesTotal = self.filesTotal + remove_num + 1
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user