The branch, frodo has been updated
via 9136f127f44f92d5e97313efc126dcd5d181cb0f (commit)
from 9d43428404272c19e1af3a78fc8a50b4f81ea00d (commit)
- Log -----------------------------------------------------------------
http://xbmc.git.sourceforge.net/git/gitweb.cgi?p=xbmc/scripts;a=commit;h=9136f127f44f92d5e97313efc126dcd5d181cb0f
commit 9136f127f44f92d5e97313efc126dcd5d181cb0f
Author: Martijn Kaijser <[email protected]>
Date: Tue Jan 21 11:08:56 2014 +0100
[script.xbmcbackup] 0.4.4
diff --git a/script.xbmcbackup/addon.xml b/script.xbmcbackup/addon.xml
index d1f0afd..c3e7668 100644
--- a/script.xbmcbackup/addon.xml
+++ b/script.xbmcbackup/addon.xml
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="script.xbmcbackup"
- name="XBMC Backup" version="0.4.3" provider-name="robweber">
+ name="XBMC Backup" version="0.4.4" provider-name="robweber">
<requires>
<import addon="xbmc.python" version="2.1.0"/>
</requires>
diff --git a/script.xbmcbackup/changelog.txt b/script.xbmcbackup/changelog.txt
index dfdea64..f334767 100644
--- a/script.xbmcbackup/changelog.txt
+++ b/script.xbmcbackup/changelog.txt
@@ -1,3 +1,7 @@
+Version 0.4.4
+
+modified the check for invalid file types
+
Version 0.4.3
added error message if remote directory is blank
diff --git a/script.xbmcbackup/resources/lib/backup.py
b/script.xbmcbackup/resources/lib/backup.py
index a53e209..1e3d45e 100644
--- a/script.xbmcbackup/resources/lib/backup.py
+++ b/script.xbmcbackup/resources/lib/backup.py
@@ -387,6 +387,7 @@ class FileManager:
self.vfs = vfs
def walkTree(self,directory):
+
if(self.vfs.exists(directory)):
dirs,files = self.vfs.listdir(directory)
@@ -394,13 +395,21 @@ class FileManager:
for aDir in dirs:
dirPath = xbmc.translatePath(directory + "/" + aDir)
file_ext = aDir.split('.')[-1]
- self.addFile("-" + dirPath)
+ self.addFile("-" + dirPath)
+
#catch for "non directory" type files
- if (not any(file_ext in s for s in self.not_dir)):
+ shouldWalk = True
+
+ for s in file_ext:
+ if(s in self.not_dir):
+ shouldWalk = False
+
+ if(shouldWalk):
self.walkTree(dirPath)
#copy all the files
for aFile in files:
+ utils.log(aFile)
filePath = xbmc.translatePath(directory + "/" + aFile)
self.addFile(filePath)
-----------------------------------------------------------------------
Summary of changes:
script.xbmcbackup/addon.xml | 2 +-
script.xbmcbackup/changelog.txt | 4 ++++
script.xbmcbackup/resources/lib/backup.py | 13 +++++++++++--
3 files changed, 16 insertions(+), 3 deletions(-)
hooks/post-receive
--
Scripts
------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today.
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
Xbmc-addons mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xbmc-addons