From ee0bd5261572c276d3838412b0a373f24cc8bfc0 Mon Sep 17 00:00:00 2001 From: Flisk Date: Thu, 2 Aug 2018 05:25:00 +0200 Subject: [PATCH] Remove obsolete encode/decode calls --- syncplay/ui/gui.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/syncplay/ui/gui.py b/syncplay/ui/gui.py index e656518..05acea3 100755 --- a/syncplay/ui/gui.py +++ b/syncplay/ui/gui.py @@ -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