From a1c0c0bbfe12814da8abe99f42c389432cfe9959 Mon Sep 17 00:00:00 2001 From: Rob Weber Date: Wed, 28 Aug 2019 14:54:31 -0500 Subject: [PATCH] don't need to decode string --- resources/lib/backup.py | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/resources/lib/backup.py b/resources/lib/backup.py index 70dc512..3dea1d2 100644 --- a/resources/lib/backup.py +++ b/resources/lib/backup.py @@ -588,20 +588,11 @@ class FileManager: self.excludeFile(xbmc.translatePath(dirMeta['path'])) def addFile(self,filename): - try: - filename = filename.decode('UTF-8') - except UnicodeDecodeError: - filename = filename.decode('ISO-8859-2') - #write the full remote path name of this file - utils.log("Add File: " + filename,xbmc.LOGDEBUG) + utils.log("Add File: " + filename) self.fileArray.append(filename) def excludeFile(self,filename): - try: - filename = filename.decode('UTF-8') - except UnicodeDecodeError: - filename = filename.decode('ISO-8859-2') #remove trailing slash if(filename[-1] == '/' or filename[-1] == '\\'):