mirror of
https://github.com/Syncplay/syncplay
synced 2025-01-09 16:19:46 +00:00
Fix show URL in GUI when loaded from Syncplay
This commit is contained in:
parent
545247c144
commit
e49ea0de12
@ -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:
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user