[GH-ISSUE #265] Repeat track is not working. #136

Closed
opened 2026-03-02 23:44:53 +03:00 by kerem · 1 comment
Owner

Originally created by @williamtwu on GitHub (Oct 4, 2023).
Original GitHub issue: https://github.com/aome510/spotify-player/issues/265

Describe the bug
When setting spotify-player to repeat the track (Ctr-s), when the song finishes it will move onto the next song in the queue and set repeat to context instead of track.

To Reproduce
Set player repeat mode to track and play next song.

Expected behavior
spotify-player should continue looping over the selected song.

Log and backtrace
Log:

2023-10-04T17:20:05.902904Z  INFO spotify_player::streaming: Got an event from the integrated player: Playing { play_request_id: 7, track_id: SpotifyId { id: 3324511816787736100851807130481532160, audio_type: Track }, position_ms: 0, duration_ms: 136440 }
2023-10-04T17:20:05.910136Z  INFO client_request{request=Player(ResumePause)}: spotify_player::client: successfully handled the client request, took: 106ms
2023-10-04T17:20:06.027209Z  INFO client_request{request=GetCurrentPlayback}: spotify_player::client: successfully handled the client request, took: 124ms
2023-10-04T17:20:06.028029Z  INFO client_request{request=GetCurrentPlayback}: spotify_player::client: Retrieving an image from the file: /home/willwu16/.cache/spotify-player/image/TV Animation BLEACH Original Soundtrack 1-Shiro SAGISU-cover.jpg
2023-10-04T17:20:06.028088Z  INFO client_request{request=GetCurrentPlayback}: spotify_player::client: successfully handled the client request, took: 125ms
2023-10-04T17:20:06.103131Z  INFO client_request{request=GetCurrentPlayback}: spotify_player::client: successfully handled the client request, took: 200ms
2023-10-04T17:20:06.115997Z  INFO client_request{request=GetCurrentPlayback}: spotify_player::client: successfully handled the client request, took: 213ms
2023-10-04T17:20:06.124760Z  INFO client_request{request=GetCurrentPlayback}: spotify_player::client: successfully handled the client request, took: 221ms
2023-10-04T17:20:33.296948Z  INFO client_request{request=Player(Repeat)}: spotify_player::client: successfully handled the client request, took: 124ms
2023-10-04T17:20:34.120572Z  INFO client_request{request=Player(Repeat)}: spotify_player::client: successfully handled the client request, took: 117ms
2023-10-04T17:21:51.766755Z  INFO spotify_player::streaming: Got an event from the integrated player: TimeToPreloadNextTrack { play_request_id: 7, track_id: SpotifyId { id: 3324511816787736100851807130481532160, audio_type: Track } }
2023-10-04T17:21:51.921645Z  INFO client_request{request=GetCurrentPlayback}: spotify_player::client: successfully handled the client request, took: 154ms
2023-10-04T17:21:52.119110Z  INFO spotify_player::streaming: Got an event from the integrated player: Preloading { track_id: SpotifyId { id: 64860336052830177198057892403670950018, audio_type: Track } }
2023-10-04T17:21:52.232433Z  INFO client_request{request=GetCurrentPlayback}: spotify_player::client: successfully handled the client request, took: 113ms
2023-10-04T17:22:21.781482Z  INFO spotify_player::streaming: Got an event from the integrated player: EndOfTrack { play_request_id: 7, track_id: SpotifyId { id: 3324511816787736100851807130481532160, audio_type: Track } }
2023-10-04T17:22:21.781584Z  INFO spotify_player::streaming: Got an event from the integrated player: Changed { old_track_id: SpotifyId { id: 3324511816787736100851807130481532160, audio_type: Track }, new_track_id: SpotifyId { id: 64860336052830177198057892403670950018, audio_type: Track } }
2023-10-04T17:22:21.781620Z  INFO spotify_player::streaming: Got an event from the integrated player: Playing { play_request_id: 8, track_id: SpotifyId { id: 64860336052830177198057892403670950018, audio_type: Track }, position_ms: 0, duration_ms: 228133 }
2023-10-04T17:22:21.897753Z  INFO client_request{request=GetCurrentPlayback}: spotify_player::client: successfully handled the client request, took: 116ms
2023-10-04T17:22:21.971048Z  INFO client_request{request=GetCurrentPlayback}: spotify_player::client: Retrieving an image from the file: /home/willwu16/.cache/spotify-player/image/TV Animation BLEACH Original Soundtrack 1-Shiro SAGISU-cover.jpg
2023-10-04T17:22:21.971270Z  INFO client_request{request=GetCurrentPlayback}: spotify_player::client: successfully handled the client request, took: 189ms
2023-10-04T17:22:21.995001Z  INFO client_request{request=GetCurrentPlayback}: spotify_player::client: successfully handled the client request, took: 213ms

Environment

  • OS: Ubuntu 22.04
  • Application version: spotify_player 0.15.0
  • Application features: if applicable, provide cargo features used to build spotify_player
Originally created by @williamtwu on GitHub (Oct 4, 2023). Original GitHub issue: https://github.com/aome510/spotify-player/issues/265 **Describe the bug** When setting spotify-player to repeat the track (Ctr-s), when the song finishes it will move onto the next song in the queue and set repeat to `context` instead of `track`. **To Reproduce** Set player repeat mode to `track` and play next song. **Expected behavior** spotify-player should continue looping over the selected song. **Log and backtrace** Log: ``` 2023-10-04T17:20:05.902904Z INFO spotify_player::streaming: Got an event from the integrated player: Playing { play_request_id: 7, track_id: SpotifyId { id: 3324511816787736100851807130481532160, audio_type: Track }, position_ms: 0, duration_ms: 136440 } 2023-10-04T17:20:05.910136Z INFO client_request{request=Player(ResumePause)}: spotify_player::client: successfully handled the client request, took: 106ms 2023-10-04T17:20:06.027209Z INFO client_request{request=GetCurrentPlayback}: spotify_player::client: successfully handled the client request, took: 124ms 2023-10-04T17:20:06.028029Z INFO client_request{request=GetCurrentPlayback}: spotify_player::client: Retrieving an image from the file: /home/willwu16/.cache/spotify-player/image/TV Animation BLEACH Original Soundtrack 1-Shiro SAGISU-cover.jpg 2023-10-04T17:20:06.028088Z INFO client_request{request=GetCurrentPlayback}: spotify_player::client: successfully handled the client request, took: 125ms 2023-10-04T17:20:06.103131Z INFO client_request{request=GetCurrentPlayback}: spotify_player::client: successfully handled the client request, took: 200ms 2023-10-04T17:20:06.115997Z INFO client_request{request=GetCurrentPlayback}: spotify_player::client: successfully handled the client request, took: 213ms 2023-10-04T17:20:06.124760Z INFO client_request{request=GetCurrentPlayback}: spotify_player::client: successfully handled the client request, took: 221ms 2023-10-04T17:20:33.296948Z INFO client_request{request=Player(Repeat)}: spotify_player::client: successfully handled the client request, took: 124ms 2023-10-04T17:20:34.120572Z INFO client_request{request=Player(Repeat)}: spotify_player::client: successfully handled the client request, took: 117ms 2023-10-04T17:21:51.766755Z INFO spotify_player::streaming: Got an event from the integrated player: TimeToPreloadNextTrack { play_request_id: 7, track_id: SpotifyId { id: 3324511816787736100851807130481532160, audio_type: Track } } 2023-10-04T17:21:51.921645Z INFO client_request{request=GetCurrentPlayback}: spotify_player::client: successfully handled the client request, took: 154ms 2023-10-04T17:21:52.119110Z INFO spotify_player::streaming: Got an event from the integrated player: Preloading { track_id: SpotifyId { id: 64860336052830177198057892403670950018, audio_type: Track } } 2023-10-04T17:21:52.232433Z INFO client_request{request=GetCurrentPlayback}: spotify_player::client: successfully handled the client request, took: 113ms 2023-10-04T17:22:21.781482Z INFO spotify_player::streaming: Got an event from the integrated player: EndOfTrack { play_request_id: 7, track_id: SpotifyId { id: 3324511816787736100851807130481532160, audio_type: Track } } 2023-10-04T17:22:21.781584Z INFO spotify_player::streaming: Got an event from the integrated player: Changed { old_track_id: SpotifyId { id: 3324511816787736100851807130481532160, audio_type: Track }, new_track_id: SpotifyId { id: 64860336052830177198057892403670950018, audio_type: Track } } 2023-10-04T17:22:21.781620Z INFO spotify_player::streaming: Got an event from the integrated player: Playing { play_request_id: 8, track_id: SpotifyId { id: 64860336052830177198057892403670950018, audio_type: Track }, position_ms: 0, duration_ms: 228133 } 2023-10-04T17:22:21.897753Z INFO client_request{request=GetCurrentPlayback}: spotify_player::client: successfully handled the client request, took: 116ms 2023-10-04T17:22:21.971048Z INFO client_request{request=GetCurrentPlayback}: spotify_player::client: Retrieving an image from the file: /home/willwu16/.cache/spotify-player/image/TV Animation BLEACH Original Soundtrack 1-Shiro SAGISU-cover.jpg 2023-10-04T17:22:21.971270Z INFO client_request{request=GetCurrentPlayback}: spotify_player::client: successfully handled the client request, took: 189ms 2023-10-04T17:22:21.995001Z INFO client_request{request=GetCurrentPlayback}: spotify_player::client: successfully handled the client request, took: 213ms ``` **Environment** - OS: Ubuntu 22.04 - Application version: spotify_player 0.15.0 - Application features: if applicable, provide [cargo features](https://doc.rust-lang.org/cargo/reference/features.html) used to build `spotify_player`
kerem 2026-03-02 23:44:53 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@aome510 commented on GitHub (Oct 4, 2023):

Repeat track is not supported if you use the integrated client. This is a well-known issue of librespot, the third-party library that spotify_player uses to support streaming via an integrated client.

Related:

I'll close this for now as nothing can be done from my side.

<!-- gh-comment-id:1747715599 --> @aome510 commented on GitHub (Oct 4, 2023): Repeat track is not supported if you use the integrated client. This is a well-known issue of `librespot`, the third-party library that `spotify_player` uses to support streaming via an integrated client. Related: * https://github.com/aome510/spotify-player/issues/88 * https://github.com/aome510/spotify-player/issues/247 I'll close this for now as nothing can be done from my side.
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#136
No description provided.