Add per-show playback control to shows create#43
Open
aboullaite wants to merge 1 commit into
Open
Conversation
Shows can opt into chapter-skip playback at creation time via --playback-control chapter-skip. The CLI validates the mode before the request, sends it as playback_control on the create call, and surfaces the server-confirmed value in the output; when the backend does not confirm the setting, the field is omitted and a warning is printed. Ships a configure-chapter-skip skill that owns when to enable the setting, plus documentation in the main skill and CLI reference.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Shows can now opt into chapter-skip playback at creation time: the player's skip forward/back buttons jump between chapters instead of seeking 15 seconds.
save-to-spotify --json shows create --title "My Show" --playback-control chapter-skipHow
shows creategains--playback-control <mode>. Modes live in a small registry (CLI name → API value), so future modes are one map entry. Unknown modes are rejected at parse time, before any network call — the backend silently drops values it doesn't recognize, so a typo passed through would create a default-controls show with no error.playback_controlfield on the existing show-create request; omitted entirely when unset, so normal creates are unchanged.playback_controlonly when the backend applied the setting. The CLI surfaces that server-confirmed value (mapped back to the CLI mode name) and prints a warning when the setting was requested but not confirmed; in--jsonmode the field's absence is the machine-readable signal.configure-chapter-skipskill owns when to enable the setting (explicit user request only) and the workflow; the main skill and CLI reference point to it.Testing