Autoplay not working for single track
Describe the bug even when autoplay is set to true in the config, when you play songs and they end autoplay doesnt work. No new songs start to play. To Reproduce
- Go to search
- Enter any song
- Play that song
- Try skipping it
- Song pauses -> No new songs start playing
Expected behaviour Normally the autoplay feature should work and related songs should start playing.
Log and backtrace 2025-07-03T12:25:43.185666Z INFO librespot_playback::player: <Alles oder Nix> (252417 ms) loaded 2025-07-03T12:25:43.185707Z INFO spotify_player::streaming: Got a new player event: Changed { playable_id: Track(TrackId("36puuD04lEUD8kVwQsTLm6")) } 2025-07-03T12:25:43.185719Z INFO spotify_player::streaming: Got a new player event: Playing { playable_id: Track(TrackId("36puuD04lEUD8kVwQsTLm6")), position_ms: 0 } 2025-07-03T12:25:43.516579Z INFO client_request{request=GetCurrentUserQueue}: spotify_player::client: Successfully handled the client request, took: 123ms 2025-07-03T12:25:46.057352Z INFO client_request{request=Player(NextTrack)}: spotify_player::client: Successfully handled the client request, took: 65ms 2025-07-03T12:25:46.062428Z INFO spotify_player::streaming: Got a new player event: Changed { playable_id: Track(TrackId("36puuD04lEUD8kVwQsTLm6")) } 2025-07-03T12:25:46.138802Z INFO spotify_player::streaming: Got a new player event: Paused { playable_id: Track(TrackId("36puuD04lEUD8kVwQsTLm6")), position_ms: 0 } 2025-07-03T12:25:49.928722Z INFO spotify_player::streaming: Got a new player event: Changed { playable_id: Track(TrackId("36puuD04lEUD8kVwQsTLm6")) } 2025-07-03T12:25:49.928748Z INFO spotify_player::streaming: Got a new player event: Paused { playable_id: Track(TrackId("36puuD04lEUD8kVwQsTLm6")), position_ms: 0 } 2025-07-03T12:25:49.935558Z INFO client_request{request=Player(NextTrack)}: spotify_player::client: Successfully handled the client request, took: 70ms 2025-07-03T12:25:51.603287Z INFO spotify_player::streaming: Got a new player event: Changed { playable_id: Track(TrackId("36puuD04lEUD8kVwQsTLm6")) } 2025-07-03T12:25:51.603309Z INFO spotify_player::streaming: Got a new player event: Paused { playable_id: Track(TrackId("36puuD04lEUD8kVwQsTLm6")), position_ms: 0 } 2025-07-03T12:25:51.609744Z INFO client_request{request=Player(NextTrack)}: spotify_player::client: Successfully handled the client request, took: 78ms 2025-07-03T12:25:51.850543Z INFO spotify_player::streaming: Got a new player event: Changed { playable_id: Track(TrackId("36puuD04lEUD8kVwQsTLm6")) } 2025-07-03T12:25:51.850557Z INFO spotify_player::streaming: Got a new player event: Paused { playable_id: Track(TrackId("36puuD04lEUD8kVwQsTLm6")), position_ms: 0 } 2025-07-03T12:25:51.857694Z INFO client_request{request=Player(NextTrack)}: spotify_player::client: Successfully handled the client request, took: 70ms 2025-07-03T12:25:52.056204Z INFO spotify_player::streaming: Got a new player event: Changed { playable_id: Track(TrackId("36puuD04lEUD8kVwQsTLm6")) } 2025-07-03T12:25:52.056224Z INFO spotify_player::streaming: Got a new player event: Paused { playable_id: Track(TrackId("36puuD04lEUD8kVwQsTLm6")), position_ms: 0 } 2025-07-03T12:25:52.062484Z INFO client_request{request=Player(NextTrack)}: spotify_player::client: Successfully handled the client request, took: 64ms 2025-07-03T12:25:54.077782Z INFO spotify_player::streaming: Got a new player event: Playing { playable_id: Track(TrackId("36puuD04lEUD8kVwQsTLm6")), position_ms: 0 } 2025-07-03T12:25:54.080729Z INFO client_request{request=Player(ResumePause)}: spotify_player::client: Successfully handled the client request, took: 77ms 2025-07-03T12:25:55.302732Z INFO client_request{request=Player(SeekTrack(TimeDelta { secs: 248, nanos: 323000000 }))}: spotify_player::client: Successfully handled the client request, took: 121ms 2025-07-03T12:25:58.916868Z INFO spotify_player::streaming: Got a new player event: EndOfTrack { playable_id: Track(TrackId("36puuD04lEUD8kVwQsTLm6")) } 2025-07-03T12:25:58.917185Z INFO spotify_player::streaming: Got a new player event: Changed { playable_id: Track(TrackId("36puuD04lEUD8kVwQsTLm6")) } 2025-07-03T12:25:59.503931Z INFO spotify_player::streaming: Got a new player event: Paused { playable_id: Track(TrackId("36puuD04lEUD8kVwQsTLm6")), position_ms: 0 } 2025-07-03T12:25:59.503931Z INFO spotify_player::streaming: Got a new player event: Paused { playable_id: Track(TrackId("36puuD04lEUD8kVwQsTLm6")), position_ms: 0 } 2025-07-03T12:29:42.778300Z INFO spotify_player::streaming: New streaming connection has been established! Please refer to this URL for more details.
Environment
- OS: MacOS
- Application version: 0.20.6
Additional context
Should be fixed with the new release (v0.21.0)
@aome510 I'm on version 0.21.0 and am experiencing the same behavior :/
@aome510 I'm on version 0.21.0 and am experiencing the same behavior :/
weird, it works for me when I tried on an album. Where did you setup autoplay: true config and please ensure you have repeat: off when start a playback
When I play individual songs they just end after. I enabled auto play and all. Repeat doesnt affect my behavior; when I play an individual song, it just stops when it's finished.
I set up the auto play from the home manager module (using a flake with the latest version, spotify_player --version reflects this) and I set the autoplay in the device = {} section of the module.
ye autoplay from a single song doesn't work for me either (not too sure what causes this or if this is expected). I tested on an album/playlist and it works
Well i think this kind of behavior is what the bug is addressing so maybe it should be reopened
I set up the auto play from the home manager module (using a flake with the latest version, spotify_player --version reflects this) and I set the autoplay in the device = {} section of the module.
I'm doing exactly this and it works just fine for me,programs.spotify-player.settings.device.autoplay = true.
Try updating your flake again.
I too have autoplay enabled in my config as shown in the image. But it does not work for single songs, just like previously stated. I have refreshed the player, relaunched. It works for albums, playlists, but not individual songs.
I’m also affected by this. Autoplay is enabled, but when I start a track using the search command, no similar songs play afterward. It might be an issue with how tracks started from search are handled.
I’ve also noticed that when I’m not using streaming (and instead use a desktop client as the playback device), autoplay works if I start the song from the desktop client itself (even with media control from spotify_player), but does not autoplay the next song if I start it from spotify_player.
I’d really appreciate it if this could be fixed, if possible.