From 048d016e0ec689be8314c001483700c429552361 Mon Sep 17 00:00:00 2001 From: Rob Weber Date: Mon, 30 Sep 2019 14:36:54 -0500 Subject: [PATCH] googleDrive removed, use isdigit() on object directly --- resources/lib/backup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/lib/backup.py b/resources/lib/backup.py index 4d57ab0..2ba9755 100644 --- a/resources/lib/backup.py +++ b/resources/lib/backup.py @@ -88,7 +88,7 @@ class XbmcBackup: file_ext = aFile.split('.')[-1] folderName = aFile.split('.')[0] - if(file_ext == 'zip' and len(folderName) == 12 and str.isdigit(folderName)): + if(file_ext == 'zip' and len(folderName) == 12 and folderName.isdigit()): #format the name according to regional settings folderName = self._dateFormat(folderName) @@ -496,7 +496,7 @@ class XbmcBackup: result = None #copy the file and open it - if(isinstance(self.remote_vfs,DropboxFileSystem) or isinstance(self.remote_vfs,GoogleDriveFilesystem)): + if(isinstance(self.remote_vfs,DropboxFileSystem)): 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"))