diff --git a/resources/lib/backup.py b/resources/lib/backup.py index e41053a..d074557 100644 --- a/resources/lib/backup.py +++ b/resources/lib/backup.py @@ -456,8 +456,8 @@ class XbmcBackup: else: self._updateProgress() wroteFile = True - if(isinstance(source,DropboxFileSystem)): - #if copying from dropbox we need the file handle, use get_file + if(isinstance(source,DropboxFileSystem) or isinstance(source,GoogleDriveFilesystem)): + #if copying from cloud storage we need the file handle, use get_file wroteFile = source.get_file(aFile,dest.root_path + aFile[len(source.root_path):]) else: #copy using normal method diff --git a/resources/lib/vfs.py b/resources/lib/vfs.py index edd3bf2..eb57c63 100644 --- a/resources/lib/vfs.py +++ b/resources/lib/vfs.py @@ -396,12 +396,17 @@ class GoogleDriveFilesystem(Vfs): return result def get_file(self,source, dest): - + result = True + #get the id of this file file = self._getGoogleFile(source) if(file != None): file.GetContentFile(dest) + else: + result = False + + return result def rmdir(self,directory): result = True