From 951c192adbb8ba2b83d0e4d58554611af677ea44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9F=D0=B0=D0=B2=D0=BB=D0=BE?= <33848191+p182@users.noreply.github.com> Date: Wed, 30 Sep 2020 13:28:29 +0300 Subject: [PATCH] Update musicbrainz.py URLEncode already do URL Quoting, so we don't need to do it before --- maloja/thirdparty/musicbrainz.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/maloja/thirdparty/musicbrainz.py b/maloja/thirdparty/musicbrainz.py index 9e146a8..7a13bbd 100644 --- a/maloja/thirdparty/musicbrainz.py +++ b/maloja/thirdparty/musicbrainz.py @@ -33,8 +33,8 @@ class MusicBrainz(MetadataInterface): self.lock.acquire() try: artists, title = track - artiststring = urllib.parse.quote(", ".join(artists)) - titlestring = urllib.parse.quote(title) + artiststring = ", ".join(artists) #Join artists collection into string + titlestring = title querystr = urllib.parse.urlencode({ "fmt":"json", "query":"{title} {artist}".format(artist=artiststring,title=titlestring)