don't quote

This commit is contained in:
Fusselkater 2022-11-11 12:24:14 +01:00
parent 6c707775a6
commit 983a060f7b

View file

@ -27,7 +27,7 @@ class JamendoClient:
'client_id': self._client_id,
'offset': offset,
'format': 'json',
'tags': urllib.parse.quote(tags),
'tags': tags,
'audioformat': audioformat,
'imagesize': imagesize,
'ccsa': ccsa,
@ -35,9 +35,9 @@ class JamendoClient:
'ccnc': ccnc,
'limit': 5
}
if vocalinstrumental: params['vocalinstrumental'] = urllib.parse.quote(vocalinstrumental)
if acousticelectric: params['acousticelectric'] = urllib.parse.quote(acousticelectric)
if speed: params['speed'] = urllib.parse.quote(speed)
if vocalinstrumental: params['vocalinstrumental'] = vocalinstrumental
if acousticelectric: params['acousticelectric'] = acousticelectric
if speed: params['speed'] = speed
url = urllib.parse.urljoin(API_BASE, f'tracks/?{urllib.parse.urlencode(params)}')