[GH-ISSUE #362] Playback doesn't start when uris argument provided #211

Closed
opened 2026-02-27 23:21:24 +03:00 by kerem · 3 comments
Owner

Originally created by @Thierry-Gls on GitHub (Mar 20, 2019).
Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/362

Hi,

So I've been working on a project using spotify with python. I use spotipy for the script and spotifyd to create a spotify connect device that I can retrieve with my script.

Since then my script was working fine (start, pause playback, redirecting to my playlist when I'm currently playing a track that is not in my playlist), but now when I start the playback and redirect to my playlist, the playback just doesn't start.

Here's the code that apparently doesn't work
spotify_obj.start_playback(device_id=spotifyd_device, uris=tracks_list)

An example of what contains the tracks_list
['spotify:track:0PiwFz4yt1701RA6TcvPF5', 'spotify:track:3VmWsrEdKlcLe19RdGmwb0']

It works when I stop the playback or when I start without providing a uris list.

Apparently Spotify made some recent changes about uris (for playlists mainly), maybe this is where the issue come from?

Thank you very much !

Originally created by @Thierry-Gls on GitHub (Mar 20, 2019). Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/362 Hi, So I've been working on a project using spotify with python. I use spotipy for the script and spotifyd to create a spotify connect device that I can retrieve with my script. Since then my script was working fine (start, pause playback, redirecting to my playlist when I'm currently playing a track that is not in my playlist), but now when I start the playback and redirect to my playlist, the playback just doesn't start. Here's the code that apparently doesn't work `spotify_obj.start_playback(device_id=spotifyd_device, uris=tracks_list)` An example of what contains the tracks_list `['spotify:track:0PiwFz4yt1701RA6TcvPF5', 'spotify:track:3VmWsrEdKlcLe19RdGmwb0']` It works when I stop the playback or when I start without providing a uris list. Apparently Spotify made some recent changes about uris (for playlists mainly), maybe this is where the issue come from? Thank you very much !
kerem closed this issue 2026-02-27 23:21:24 +03:00
Author
Owner

@wackazong commented on GitHub (Mar 20, 2019):

For me play also does not work if I just use a device_id. See also: https://github.com/librespot-org/librespot/issues/288. I have the same issue when using the Web API, changing the song is not possible.

<!-- gh-comment-id:475010452 --> @wackazong commented on GitHub (Mar 20, 2019): For me play also does not work if I just use a device_id. See also: https://github.com/librespot-org/librespot/issues/288. I have the same issue when using the Web API, changing the song is not possible.
Author
Owner

@wackazong commented on GitHub (Mar 20, 2019):

Update your client to the latest librespot version, that fixes it. Its not a spotipy issue I think.

<!-- gh-comment-id:475057419 --> @wackazong commented on GitHub (Mar 20, 2019): Update your client to the latest librespot version, that fixes it. Its not a spotipy issue I think.
Author
Owner

@Thierry-Gls commented on GitHub (Mar 21, 2019):

Update your client to the latest librespot version, that fixes it. Its not a spotipy issue I think.

I can confirm, it solved the problem. Thanks a lot !

<!-- gh-comment-id:475190653 --> @Thierry-Gls commented on GitHub (Mar 21, 2019): > > > Update your client to the latest librespot version, that fixes it. Its not a spotipy issue I think. I can confirm, it solved the problem. Thanks a lot !
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/spotipy#211
No description provided.