Fix show URL in GUI when loaded from Syncplay

This commit is contained in:
albertosottile 2018-05-29 14:28:47 +02:00
parent 545247c144
commit e49ea0de12
2 changed files with 1 additions and 8 deletions

View File

@ -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:

View File

@ -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: