Skip to content

Movies — Server #197

Open
Open

Description

@zZebrahz

Server surface of Movies — see parent #196 for the parity gate.

Acceptance criteria (server slice)

  • Configured folder scans to completion; rescan reflects added/changed/removed, is idempotent (no dupes), preserves watch progress & history.
  • Every item matched to metadata (artwork, title, summary, movie fields); unmatched items stay visible and remain fixable via the management API.
  • Plugin host routes movie metadata to metadata_provider.v1 providers by the library's configured provider priority; the contract is enforced at the host boundary and unmatched items remain manually fixable.
  • Provider assignment is not capability-filtered — any installed provider can be added to a Movies library. A provider that doesn't support movies contributes no matches and is skipped gracefully: items stay unmatched / manually fixable, no error or crash.
  • Browse endpoints paginate; first page of a ~10k library returns within the p95 budget (≤1s) while N transcodes run.
  • Profile library access + content rating enforced server-side on both browse AND stream endpoints — the access resolver is the boundary, not UI hiding.
  • Playback: direct-play when codecs allow; remux/transcode fallback; cold-start first frame within budget; seek past buffered region; mid-stream audio/subtitle switch restarts the transcode and resumes at position.
  • Progress: resume position monotonic-forward across devices; two devices converge to the furthest position.
  • Edge cases: a no-metadata item is still served and playable; a corrupt / 0-byte file returns a clear error (never crashes a client).

Surface: server

Activity

  1. added theissue type on Jun 25, 2026
  2. added
    v1.0
    on Sep 19, 2026
  3. added
    triaged
    and removed
    triaged
    on Sep 20, 2026
  4. moved this from Todo to In Review in Silo v1.0.0on Sep 22, 2026
  5. moved this from In Review to Todo in Silo v1.0.0on Sep 22, 2026
  6. Quick104 commented on Nov 25, 2026

    @Quick104
    Contributor

    Proposed results from agent runtime testing: server 2970 · a16a24720 (local sandbox), API checks

    The maintainer asked for this run. One agent tested each acceptance-criteria bullet (numbered AC1… in order, since the task has no case table) and a second agent checked the evidence against the task text and the code, rerunning two steps. Nothing in the task body, checkboxes or board status was changed.

    AC Server
    AC1 scan / rescan Passed: added, replaced, renamed and deleted films reached the catalog within about 9 s; ids and watch progress were kept and repeat scans changed nothing
    AC2 matching, unmatched fixable Failed: matching and manual fixes work, but Complete Refresh removes a hand-matched film, and also a hand-edited unmatched one, from the library and Unmatched Items until its match back-off ends (#5337)
    AC3 provider routing by priority Passed in part: on one film, swapping TheTVDB and TMDB in the chain changed the overview, runtime and logo, and restoring the order changed them back. Contract enforcement at the host boundary wasn't covered (no contract-breaking provider to install)
    AC4 no capability filtering Passed on the server: the API accepted a provider with no movie support in a Movies chain, and films stayed unmatched, visible and playable with no errors. The web editor, though, only offers providers that declare movie support (see #198)
    AC5 pagination under load Passed: with a 10,000-film library, first-page p95 was 59 ms idle, 84 ms with 8 transcodes and 120 ms with 16, against the 1 s budget (one API server, client on the same host)
    AC6 access enforced on browse and stream Passed: hidden titles and libraries answered 404 on browse, item and playback start; a stream URL issued for an adult profile answered 403 with a restricted profile
    AC7 playback paths Passed in part: direct play, remux, transcode, seeking past the buffer and a mid-stream audio switch (restarting the transcode at position) all worked; first frame took 1.1–1.6 s, but the task gives no budget. The subtitle switch tried was a sidecar subtitle, where keeping the stream is by design; a burned-in subtitle switch wasn't tried
    AC8 progress convergence Blocked pending #1249's progress decision. As written the bullet fails: the server keeps the newest write, not the furthest position, so a later, smaller position replaces a larger one
    AC9 edge cases Failed: a no-metadata film plays and zero-byte and random files are refused clearly, but a truncated film direct-plays up to the cut and then stops with no error (#5339)

    Posted with Claude Code (claude-sonnet-5-5 testing, claude-opus-5-5 verification) and GitHub CLI at the maintainer's direction. These are proposed results only; no human acceptance is claimed.

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

    Validationv1.0

    Type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions