Skip to content

Match Item dialog shows video provider IDs for ebook libraries #180

Closed

Description

@Quick104

Problem

When manually fixing an unmatched item from an Ebooks library, the Match Item dialog renders video-centric external ID fields: IMDb ID, TMDB ID, and TVDB ID. Those fields are irrelevant for ebook/comic metadata matching and make the manual repair workflow look unsupported or broken for ebook libraries.

Repro

  1. Create a library with type Ebooks, for example a comics library.
  2. Add comic or ebook files such as .cbz, .epub, or .pdf.
  3. Let autoscan run, or trigger a manual scan.
  4. Open the Unmatched Items admin view.
  5. Click Match on an unmatched ebook/comic, for example Absolute Batman 001 (2024).
  6. Inspect the external ID inputs in the Match Item dialog.

Expected

The dialog adapts to the item/library type. For ebook items it should hide video-only provider fields and either show no external ID override fields or show ebook-relevant IDs supported by the active ebook metadata providers, such as ISBN, Goodreads, ComicVine, or other provider-specific IDs.

Actual

The dialog always shows IMDb ID, TMDB ID, and TVDB ID.

Environment

  • Observed version: 8b6e53cf
  • Deployment: Docker
  • Library type: Ebooks
  • Observed file type: .cbz; likely also affects other ebook formats.

Validation notes

This appears to be a real product bug, not just a missing enhancement:

  • web/src/components/MatchItemDialog.tsx initializes and submits only imdb_id, tmdb_id, and tvdb_id, and renders only those three external ID fields.
  • web/src/pages/AdminLibraries.tsx opens the dialog from Unmatched Items while casting content_type to the video-only union movie | series | season | episode, so ebook/manga types are not represented correctly at the component boundary.
  • web/src/api/types.ts models ItemMatchSearchRequest with only imdb_id, tmdb_id, and tvdb_id.
  • internal/api/handlers/admin_match.go accepts only those same three IDs and only injects those providers into the metadata search query.
  • internal/metadata/service.go chooses the series provider chain for search unless the content type is movie/movies, so an ebook match search does not appear to resolve the ebook chain even though library setup supports an ebook metadata content level.
  • In contrast, ebook enrichment already builds ebook search requests with content type ebook and persists generic provider IDs after filtering, so the manual-match path is out of sync with the ebook metadata path.

Suggested fix direction

  • Pass the real unmatched item type through the admin UI instead of narrowing it to video-only types.
  • Make Match Item render external ID controls from provider/content-level metadata, or at minimum hide video-only fields for ebook and manga items until ebook-specific fields are supported.
  • Extend the match search request/handler to accept generic provider_ids for non-video media, while keeping the existing video fields backward-compatible if needed.
  • Update manual search to resolve the provider chain for the actual content level, including ebook and manga, instead of defaulting non-movie searches to series.
  • Review candidate normalization for ebook provider IDs; it currently groups primarily by TMDB/TVDB/IMDb, with only a metadb fallback.

Acceptance criteria

  • Opening Match Item for an unmatched ebook/comic does not show IMDb/TMDB/TVDB fields unless those providers are actually relevant to the selected content type/provider chain.
  • Ebook-relevant provider IDs can be used for manual match search/apply when supported by the configured provider.
  • Manual match search for ebook items uses the ebook metadata provider chain.
  • Existing movie/series manual match behavior remains unchanged.

Activity

  1. added
    bug
    on Jun 18, 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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions