mirror of
https://github.com/librespot-org/librespot.git
synced 2026-04-27 08:15:50 +03:00
[PR #1219] [CLOSED] Draft: RFC supporting single track repeat #1284
Labels
No labels
A-Alsa
SpotifyAPI
Tokio 1.0
audio
bug
can't reproduce
compilation
dependencies
duplicate
enhancement
good first issue
help wanted
high priority
imported
imported
invalid
new api
pull-request
question
reverse engineering
wiki
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/librespot#1284
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/librespot-org/librespot/pull/1219
Author: @sarjann
Created: 11/12/2023
Status: ❌ Closed
Base:
dev← Head:feature/single_track_repeat📝 Commits (1)
65be3c6Initial commit for repeat one📊 Changes
4 files changed (+44 additions, -1 deletions)
View changed files
📝
connect/src/spirc.rs(+27 -0)📝
contrib/event_handler_example.py(+3 -0)📝
playback/src/player.rs(+12 -1)📝
protocol/proto/spirc.proto(+2 -0)📄 Description
Thinking of tackling the issue of single-track repeat not being supported.
Note I'm not planning on merging this branch as is as it's broken / logic / ugly doesn't work and doesn't implement the changes I'm discussing. This is more just to describe what I want to do.
I'm thinking of doing it in a similar way to that shown here if we want backward compatibility. i.e creating a separate field for repeat_one and handling the logic for that separately.
Or what I'd prefer to do is to make repeat an enum with something like Repeat::Track, Repeat::All, Repeat::Off although I'm pretty sure this will break backwards compatibility. Although I guess I could store it this way in the state but the messages/interface the end user sends can treat it as two different events and what's returned is repeat=true,repeat_one=false seperately for example, preserving backwards compatibility.
I'm new to this project, so sorry if I'm missing something or saying something stupid. Just wanted some feedback before going deeper. Thanks.
Related Issue: https://github.com/librespot-org/librespot/issues/19
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.