From 265b7f87d7e269c3852e9bc34b9e42ea295fb43b Mon Sep 17 00:00:00 2001 From: DiMartinoXBMC Date: Thu, 22 Dec 2016 21:14:19 +0300 Subject: [PATCH] fix back --- Core.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Core.py b/Core.py index 57b3c47..3ffd589 100644 --- a/Core.py +++ b/Core.py @@ -1235,7 +1235,7 @@ class Core: filename = os.path.join(folder, filename) xbmc.executebuiltin('xbmc.PlayMedia("' + filename.encode('utf-8') + '")') elif tdir and action == 'copy': - path=os.path.join(folder, tdir) + path = os.path.join(localize_path(folder), localize_path(tdir)) dirs, files=xbmcvfs.listdir(path) if len(dirs) > 0: dirs.insert(0, self.localize('./ (Root folder)')) @@ -1250,9 +1250,10 @@ class Core: path=os.path.join(path, dirs[ret]) dirs, files=xbmcvfs.listdir(path) for file in files: - if not xbmcvfs.exists(os.path.join(path,file)): - xbmcvfs.delete(os.path.join(path,file)) - xbmcvfs.copy(os.path.join(path,file),os.path.join(folder,file)) + file = localize_path(file) + if not xbmcvfs.exists(os.path.join(path, file)): + xbmcvfs.delete(os.path.join(path, file)) + xbmcvfs.copy(os.path.join(path, file),os.path.join(folder, file)) i=i+1 showMessage(self.localize('Torrent-client Browser'), self.localize('Copied %d files!') % i, forced=True) return