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:
parent
22172d8b57
commit
951c192adb
4
maloja/thirdparty/musicbrainz.py
vendored
4
maloja/thirdparty/musicbrainz.py
vendored
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user