Added a check because otherwise the requests had the query parameter "device_id=None" (e.g. https://api.spotify.com/v1/me/player/shuffle?state=True&device_id=None) which was creating a 404 on the spotify api. This happened because when only using str(device) it returns None as a string and that results in failing if checks later in the http.py
To test the changes:
player.next()
was not working before when no device were specified as a parameter. now it does.
Added a check because otherwise the requests had the query parameter "device_id=None" (e.g. https://api.spotify.com/v1/me/player/shuffle?state=True&device_id=None) which was creating a 404 on the spotify api. This happened because when only using str(device) it returns None as a string and that results in failing if checks later in the http.py
To test the changes: player.next() was not working before when no device were specified as a parameter. now it does.