don't quote
This commit is contained in:
parent
6c707775a6
commit
983a060f7b
1 changed files with 4 additions and 4 deletions
|
@ -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)}')
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue