mirror of
https://github.com/robweber/xbmcbackup.git
synced 2024-11-14 20:35:48 +01:00
show notification if files failed to copy
This commit is contained in:
parent
f41f37782d
commit
2fc26b6e8c
@ -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
|
||||||
|
@ -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>
|
||||||
|
@ -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/")
|
||||||
|
Loading…
Reference in New Issue
Block a user