album = deezer.get_album("100837152")
listTrackIDs = [data["id"] for data in album["tracks"]["data"]]
for track_id in listTrackIDs:
track = deezer.get_track(track_id)
quality = deezer.get_track_valid_quality(track["info"])
print(quality)
Error produced:
File "C:\Python38\lib\site-packages\pydeezer\Deezer.py", line 184, in get_track_valid_quality
res = self.session.get(
File "C:\Python38\lib\site-packages\requests\sessions.py", line 555, in get
return self.request('GET', url, **kwargs)
File "C:\Python38\lib\site-packages\requests\sessions.py", line 542, in request
resp = self.send(prep, **send_kwargs)
File "C:\Python38\lib\site-packages\requests\sessions.py", line 649, in send
adapter = self.get_adapter(url=request.url)
File "C:\Python38\lib\site-packages\requests\sessions.py", line 742, in get_adapter
raise InvalidSchema("No connection adapters were found for {!r}".format(url))
requests.exceptions.InvalidSchema: No connection adapters were found for "('https://e-cdns-proxy-2.dzcdn.net/mobile/1/d024f8952dfbfb52c6166a36a357c300a2f5a3eadc07fba81450a08302938b5ecfa7b9ca26aa5b4b8f62d6cbb8769fa2bb071f340241be4e2850bc5ac9c49a61027dcba70c50d7fff233e02f54d043d7', 'MP3_128')"
I'm running Python 3.8.7, on Windows 10 64-bit.
Error produced:
Am I using get_track_valid_quality() correctly?