From 4d56331d8ff08531ce2123d8120568253c3aa678 Mon Sep 17 00:00:00 2001 From: Rob Weber Date: Mon, 30 Sep 2019 09:33:06 -0500 Subject: [PATCH] fix for getting val file from non-zipped remote system --- resources/lib/backup.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/resources/lib/backup.py b/resources/lib/backup.py index a2d190b..ac54cd8 100644 --- a/resources/lib/backup.py +++ b/resources/lib/backup.py @@ -500,7 +500,10 @@ class XbmcBackup: result = None #copy the file and open it - self.xbmc_vfs.put(path + "xbmcbackup.val",xbmc.translatePath(utils.data_dir() + "xbmcbackup_restore.val")) + if(isinstance(self.remote_vfs,DropboxFileSystem) or isinstance(self.remote_vfs,GoogleDriveFilesystem)): + self.remote_vfs.get_file(path + "xbmcbackup.val", xbmc.translatePath(utils.data_dir() + "xbmcbackup_restore.val")) + else: + self.xbmc_vfs.put(path + "xbmcbackup.val",xbmc.translatePath(utils.data_dir() + "xbmcbackup_restore.val")) vFile = xbmcvfs.File(xbmc.translatePath(utils.data_dir() + "xbmcbackup_restore.val"),'r') jsonString = vFile.read()