show notification if files failed to copy

This commit is contained in:
Rob Weber 2014-10-31 09:56:02 -05:00
parent f41f37782d
commit 2fc26b6e8c
3 changed files with 7 additions and 1 deletions

View File

@ -1,5 +1,6 @@
Version 0.5.8.6 Version 0.5.8.6
show notification if some files failed
check if destination is writeable - thanks war59312 check if destination is writeable - thanks war59312
Version 0.5.8.5 Version 0.5.8.5

View File

@ -83,4 +83,5 @@
<string id="30089">Write Error Detected</string> <string id="30089">Write Error Detected</string>
<string id="30090">The destination may not be writeable</string> <string id="30090">The destination may not be writeable</string>
<string id="30091">Zip archive could not be copied</string> <string id="30091">Zip archive could not be copied</string>
<string id="30092">Not all files were copied</string>
</strings> </strings>

View File

@ -244,7 +244,11 @@ class XbmcBackup:
for fileGroup in allFiles: for fileGroup in allFiles:
self.xbmc_vfs.set_root(fileGroup['source']) self.xbmc_vfs.set_root(fileGroup['source'])
self.remote_vfs.set_root(fileGroup['dest']) self.remote_vfs.set_root(fileGroup['dest'])
self.backupFiles(fileGroup['files'],self.xbmc_vfs,self.remote_vfs) filesCopied = self.backupFiles(fileGroup['files'],self.xbmc_vfs,self.remote_vfs)
if(not filesCopied):
utils.showNotification(utils.getString(30092))
utils.log(utils.getString(30092))
#reset remote and xbmc vfs #reset remote and xbmc vfs
self.xbmc_vfs.set_root("special://home/") self.xbmc_vfs.set_root("special://home/")