From 2fc26b6e8c76f863b386a48f600d79350e626548 Mon Sep 17 00:00:00 2001 From: Rob Weber Date: Fri, 31 Oct 2014 09:56:02 -0500 Subject: [PATCH] show notification if files failed to copy --- changelog.txt | 1 + resources/language/English/strings.xml | 1 + resources/lib/backup.py | 6 +++++- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/changelog.txt b/changelog.txt index f899b7e..1777801 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,5 +1,6 @@ Version 0.5.8.6 +show notification if some files failed check if destination is writeable - thanks war59312 Version 0.5.8.5 diff --git a/resources/language/English/strings.xml b/resources/language/English/strings.xml index a0d22f8..f0b39ae 100644 --- a/resources/language/English/strings.xml +++ b/resources/language/English/strings.xml @@ -83,4 +83,5 @@ Write Error Detected The destination may not be writeable Zip archive could not be copied + Not all files were copied diff --git a/resources/lib/backup.py b/resources/lib/backup.py index 3cba560..dce1270 100644 --- a/resources/lib/backup.py +++ b/resources/lib/backup.py @@ -244,7 +244,11 @@ class XbmcBackup: for fileGroup in allFiles: self.xbmc_vfs.set_root(fileGroup['source']) 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 self.xbmc_vfs.set_root("special://home/")