mirror of
https://github.com/Syncplay/syncplay
synced 2025-03-31 23:59:05 +00:00
Remove obsolete encode/decode calls
This commit is contained in:
parent
9e4ea68171
commit
ee0bd52615
@ -972,12 +972,7 @@ class MainWindow(QtWidgets.QMainWindow):
|
|||||||
self.updatingPlaylist = True
|
self.updatingPlaylist = True
|
||||||
for URI in URIsToAdd:
|
for URI in URIsToAdd:
|
||||||
URI = URI.rstrip()
|
URI = URI.rstrip()
|
||||||
try:
|
|
||||||
URI = URI.encode('utf-8')
|
|
||||||
except UnicodeDecodeError:
|
|
||||||
pass
|
|
||||||
URI = urllib.parse.unquote(URI)
|
URI = urllib.parse.unquote(URI)
|
||||||
URI = URI.decode('utf-8')
|
|
||||||
if URI != "":
|
if URI != "":
|
||||||
self.addStreamToPlaylist(URI)
|
self.addStreamToPlaylist(URI)
|
||||||
self.updatingPlaylist = False
|
self.updatingPlaylist = False
|
||||||
|
Loading…
Reference in New Issue
Block a user