You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Shuffle a library, series, season, or collection #470
Silo-Server/silo-server#1984 adds Shuffle: random movies and episodes from a library, series, season, or collection, playing until the viewer stops, with nothing repeated until the whole scope has played. The web app gets it in that pull request. This app should offer it too once the server change merges.
Server API
All under /api/v2, documented in docs/playback-api.md ("Shuffle"):
GET /shuffles/capabilities: offer Shuffle only when state is available. scope_kinds lists the scopes the server accepts.
POST /shuffles with {scope: {kind, id}}. kind is library, series, season, library_collection, or user_collection. The response has current and next as catalog item cards. 404 means the viewer can't see the scope; 409 means nothing in it can play.
When current finishes, POST /shuffles/{shuffle_id}/advance with from_content_id; play the returned current. Retrying for the same item changes nothing.
Pick Another: POST /shuffles/{shuffle_id}/skip with next_content_id.
Stop shuffling: DELETE /shuffles/{shuffle_id}.
The server applies the profile's library access and parental limits to every pick and includes specials.
Web behavior to match
Shuffle on library screens (movie, TV, and mixed libraries), first in the series and season More menus (not on a season with fewer than two playable episodes), and on collection screens.
Every pick plays from the beginning, not from saved progress.
Near the end of an item, the up-next screen shows "Shuffling " (for a season, " · ") and the next pick, with Play Now, Pick Another, and Stop shuffling. The usual auto-play countdown applies. When next equals current (only one playable item), show the finished state instead.
The sequential next and previous episode controls are off during a shuffle.
Activity