1
0
mirror of https://github.com/krateng/maloja.git synced 2023-08-10 21:12:55 +03:00

Merge pull request #34 from p182/patch-1

Fixed double escaping when getting metadata from musicbrainz
This commit is contained in:
krateng 2020-10-02 14:59:03 +02:00 committed by GitHub
commit 21b27d17c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)