Skip to content

Shuffle a library, series, season, or collection #470

Closed

Description

@Rhainland

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.

AI disclosure

  • Harness: Claude Code
  • Tool(s): Claude Code, GitHub CLI
  • Model(s): claude-opus-5-5
  • Involvement: AI-assisted

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions