@@ -28,8 +28,10 @@ categories = ['music']
2828paging = True
2929
3030# search-url
31−url = 'https://api.soundcloud.com/'
31+# missing attribute: user_id, app_version, app_locale
32+url = 'https://api-v2.soundcloud.com/'
3233search_url = url + 'search?{query}'\
34+ '&variant_ids='\
3335 '&facet=model'\
3436 '&limit=20'\
3537 '&offset={offset}'\
@@ -57,7 +59,7 @@ def get_client_id():
5759 # gets app_js and searches for the clientid
5860 response = http_get(app_js_url)
5961 if response.ok:
60− cids = cid_re.search(response.text)
62+ cids = cid_re.search(response.content.decode("utf-8"))
6163 if cids is not None and len(cids.groups()):
6264 return cids.groups()[0]
6365 logger.warning("Unable to fetch guest client_id from SoundCloud, check parser!")