Repository navigation
Closed
Labels
bugSomething isn't working
Description
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
- Create a library with type
Ebooks, for example a comics library. - Add comic or ebook files such as
.cbz,.epub, or.pdf. - Let autoscan run, or trigger a manual scan.
- Open the Unmatched Items admin view.
- Click
Matchon an unmatched ebook/comic, for exampleAbsolute Batman 001 (2024). - 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.tsxinitializes and submits onlyimdb_id,tmdb_id, andtvdb_id, and renders only those three external ID fields.web/src/pages/AdminLibraries.tsxopens the dialog from Unmatched Items while castingcontent_typeto the video-only unionmovie | series | season | episode, so ebook/manga types are not represented correctly at the component boundary.web/src/api/types.tsmodelsItemMatchSearchRequestwith onlyimdb_id,tmdb_id, andtvdb_id.internal/api/handlers/admin_match.goaccepts only those same three IDs and only injects those providers into the metadata search query.internal/metadata/service.gochooses theseriesprovider chain for search unless the content type is movie/movies, so an ebook match search does not appear to resolve theebookchain even though library setup supports an ebook metadata content level.- In contrast, ebook enrichment already builds ebook search requests with content type
ebookand 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
ebookandmangaitems until ebook-specific fields are supported. - Extend the match search request/handler to accept generic
provider_idsfor 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
ebookandmanga, instead of defaulting non-movie searches toseries. - Review candidate normalization for ebook provider IDs; it currently groups primarily by TMDB/TVDB/IMDb, with only a
metadbfallback.
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.
Metadata
Metadata
Assignees
Labels
bugSomething isn't working
Activity