[GH-ISSUE #767] Autoplay not working for single track #455

Open
opened 2026-03-02 23:47:37 +03:00 by kerem · 10 comments
Owner

Originally created by @amstrdm on GitHub (Jul 3, 2025).
Original GitHub issue: https://github.com/aome510/spotify-player/issues/767

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: (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

Originally created by @amstrdm on GitHub (Jul 3, 2025). Original GitHub issue: https://github.com/aome510/spotify-player/issues/767 **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](https://github.com/aome510/spotify-player?tab=readme-ov-file#logging) for more details. **Environment** - OS: MacOS - Application version: 0.20.6 **Additional context**
Author
Owner

@aome510 commented on GitHub (Aug 31, 2025):

Should be fixed with the new release (v0.21.0)

<!-- gh-comment-id:3240507864 --> @aome510 commented on GitHub (Aug 31, 2025): Should be fixed with the new release (`v0.21.0`)
Author
Owner

@ghost commented on GitHub (Sep 9, 2025):

@aome510 I'm on version 0.21.0 and am experiencing the same behavior :/

<!-- gh-comment-id:3272081805 --> @ghost commented on GitHub (Sep 9, 2025): @aome510 I'm on version 0.21.0 and am experiencing the same behavior :/
Author
Owner

@aome510 commented on GitHub (Sep 9, 2025):

@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

<!-- gh-comment-id:3272622871 --> @aome510 commented on GitHub (Sep 9, 2025): > [@aome510](https://github.com/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
Author
Owner

@ghost commented on GitHub (Sep 9, 2025):

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.

<!-- gh-comment-id:3272629729 --> @ghost commented on GitHub (Sep 9, 2025): 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.
Author
Owner

@ghost commented on GitHub (Sep 9, 2025):

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.

<!-- gh-comment-id:3272645501 --> @ghost commented on GitHub (Sep 9, 2025): 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.
Author
Owner

@aome510 commented on GitHub (Sep 9, 2025):

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

<!-- gh-comment-id:3272649317 --> @aome510 commented on GitHub (Sep 9, 2025): 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
Author
Owner

@ghost commented on GitHub (Sep 9, 2025):

Well i think this kind of behavior is what the bug is addressing so maybe it should be reopened

<!-- gh-comment-id:3272656931 --> @ghost commented on GitHub (Sep 9, 2025): Well i think this kind of behavior is what the bug is addressing so maybe it should be reopened
Author
Owner

@wawwior commented on GitHub (Oct 8, 2025):

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.

<!-- gh-comment-id:3382734488 --> @wawwior commented on GitHub (Oct 8, 2025): > 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.
Author
Owner

@RubenVB-Revolve commented on GitHub (Oct 10, 2025):

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.

Image
<!-- gh-comment-id:3389425124 --> @RubenVB-Revolve commented on GitHub (Oct 10, 2025): 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. <img width="271" height="207" alt="Image" src="https://github.com/user-attachments/assets/ea603b5d-fa19-4cd4-b787-3ed0e4ef494f" />
Author
Owner

@Karo1808 commented on GitHub (Nov 27, 2025):

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.

<!-- gh-comment-id:3584553490 --> @Karo1808 commented on GitHub (Nov 27, 2025): 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.
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/spotify-player#455
No description provided.