Closed damnkrat closed 3 years ago
This error isn't caused by pydora, instead it's the PROXY
argument. That argument should just be the URL of your proxy as a string, not a dictionary.
Also I need to amend my code sample. This line won't work:
first_track = first_station_playlist[0]
It should instead be:
first_track = next(first_station_playlist)
Because the playlist is returned as an iterator not a list. Similarly, you can not len()
an iterator.
In my testing when I used "http://89.187.177.96:80 as a proxy the error you mentioned no longer appears.
What happened: TypeError: Cannot mix str and non-str arguments
What you expected to happen: Normal login
How to reproduce it (as minimally and precisely as possible): I thing use this code:
You wil get this error:
TypeError: Cannot mix str and non-str arguments
Anything else we need to know?:
Environment: