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