From e49ea0de12dff53d7b48fd599fa416a82ba57ff7 Mon Sep 17 00:00:00 2001 From: albertosottile Date: Tue, 29 May 2018 14:28:47 +0200 Subject: [PATCH] Fix show URL in GUI when loaded from Syncplay --- syncplay/client.py | 5 +---- syncplay/ui/gui.py | 4 ---- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/syncplay/client.py b/syncplay/client.py index 3b4386d..e56a5c1 100755 --- a/syncplay/client.py +++ b/syncplay/client.py @@ -447,10 +447,7 @@ class SyncplayClient(object): def updateFile(self, filename, duration, path): newPath = "" if utils.isURL(path): - try: - filename = path.encode('utf-8') - except UnicodeDecodeError: - filename = path + filename = path if not path: return try: diff --git a/syncplay/ui/gui.py b/syncplay/ui/gui.py index 36233f5..e5e8037 100755 --- a/syncplay/ui/gui.py +++ b/syncplay/ui/gui.py @@ -506,10 +506,6 @@ class MainWindow(QtWidgets.QMainWindow): filename = user.file['name'] if isURL(filename): filename = urllib.parse.unquote(filename) - try: - filename = filename.decode('utf-8') - except UnicodeEncodeError: - pass filenameitem = QtGui.QStandardItem(filename) fileSwitchState = self.getFileSwitchState(user.file['name']) if room == currentUser.room else None if fileSwitchState != constants.FILEITEM_SWITCH_NO_SWITCH: