Skip to content

feat(mdblist): add safe title-ratings lookup by IMDb ID #694

Open

Description

@Quick104

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.

Activity

  1. added
    triaged
    and removed
    triaged
    on Sep 20, 2026
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