Merge branch 'frodo-dev' of https://github.com/robweber/xbmcbackup into dropbox

This commit is contained in:
robweber 2012-11-05 10:54:30 -06:00
commit c4a8e60729
3 changed files with 6 additions and 1 deletions

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<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>
<import addon="xbmc.python" version="2.0"/>
</requires>

View File

@ -1,3 +1,7 @@
[b]Version 0.2.2[/b]
fix for backup rotation sort
[b]Version 0.2.1[/b]
added ability to rotate backups, keeping a set number of days

View File

@ -171,6 +171,7 @@ class XbmcBackup:
dirs,files = self.vfs.listdir(self.remote_root)
if(len(dirs) > total_backups):
#remove backups to equal total wanted
dirs.sort()
remove_num = len(dirs) - total_backups - 1
self.filesTotal = self.filesTotal + remove_num + 1