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

Update musicbrainz.py

URLEncode already do URL Quoting, so we don't need to do it before
This commit is contained in:
Павло 2020-09-30 13:28:29 +03:00 committed by GitHub
parent 22172d8b57
commit 951c192adb
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() self.lock.acquire()
try: try:
artists, title = track artists, title = track
artiststring = urllib.parse.quote(", ".join(artists)) artiststring = ", ".join(artists) #Join artists collection into string
titlestring = urllib.parse.quote(title) titlestring = title
querystr = urllib.parse.urlencode({ querystr = urllib.parse.urlencode({
"fmt":"json", "fmt":"json",
"query":"{title} {artist}".format(artist=artiststring,title=titlestring) "query":"{title} {artist}".format(artist=artiststring,title=titlestring)