Merge pull request #198 from sometoby/master

Remove obsolete encode/decode calls
This commit is contained in:
Etoh 2018-08-03 19:12:29 +01:00 committed by GitHub
commit 2c2045b477
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -972,12 +972,7 @@ class MainWindow(QtWidgets.QMainWindow):
self.updatingPlaylist = True
for URI in URIsToAdd:
URI = URI.rstrip()
try:
URI = URI.encode('utf-8')
except UnicodeDecodeError:
pass
URI = urllib.parse.unquote(URI)
URI = URI.decode('utf-8')
if URI != "":
self.addStreamToPlaylist(URI)
self.updatingPlaylist = False