Repository navigation
Open
Description
Problem
Silo's MDBList client supports list discovery but has no focused primitive for retrieving title ratings by IMDb ID.
PR #266 established that MDBList title ratings come from the legacy mdblist.com/api lookup rather than the api.mdblist.com discovery host. The two hosts return different response shapes and audience-rating source names.
This provider capability should land independently before scheduling, persistence, or client-surface work.
Desired behavior
Add a typed MDBList client method that retrieves IMDb, Rotten Tomatoes critic, and Rotten Tomatoes audience ratings for one IMDb title ID.
Acceptance criteria
- Add a focused method such as
RatingsByIMDB(ctx, imdbID). - Keep list discovery on
api.mdblist.com. - Use the verified title-ratings endpoint and query contract on
mdblist.com/api. - Parse these MDBList sources independently:
imdb;tomatoes;tomatoesaudience.
- Preserve the distinction between:
- missing;
- explicit zero;
- non-zero score.
- Accept audience-only and critic-only responses without discarding either value.
- Validate empty IMDb IDs and disabled/empty configuration without making a request.
- Bound response size and request duration.
- Classify authentication, rate-limit, non-success, malformed-response, and transport failures.
- All returned errors satisfy Silo's credential-safe MDBList error contract.
- Tests use controlled HTTP fixtures and cover success, null values, zero values, audience-only responses, 401/403, 429, other status codes, malformed JSON, oversized bodies, timeout, and credential redaction.
- No metadata refresh, database persistence, background work, API handler, or Jellycompat behavior is added in this issue.
Discovery context
Extracted from the useful provider work in Silo Server PR #266, reviewed at exact head 83623def9f8eebfd9f8a7dd3b9defd5ba9b1c1a1.
AI Disclosure
- Tool: Codex in T3 Code
- Model: gpt-5.6-sol
- Involvement: AI-assisted investigation and issue drafting, published with maintainer approval
- Adversarial review: Checked endpoint separation, nullable and zero-value semantics, response bounds, rate-limit handling, and credential-bearing error paths.
Metadata
Metadata
Assignees
Labels
No labels
Activity