Repository navigation
Description
Goal:
Use the Admin → Libraries Rescan Metadata action to refresh text and image metadata for already-matched library items, regardless of media type/provider.
Steps:
- Open the Silo admin area.
- Go to Admin → Libraries.
- Click the
Rescan Metadatabutton for a library that contains non-movie/TV media, such as audiobooks, where items are already matched through provider IDs like ASIN/ISBN or audiobook provider IDs. - Wait for the metadata refresh job to run.
Expected:
The job should refresh metadata for already-matched items in the selected library using whatever durable provider IDs apply to that media type. For example, it should be able to refresh audiobook text/image metadata from audiobook provider IDs, not only movie/TV IDs.
Actual:
The library metadata refresh job is currently not generic enough. In quick mode, it only considers items with tmdb_id, tvdb_id, or imdb_id, so matched items for other media types/providers do not get refreshed by this Admin → Libraries button.
What is slow/broken:
Admin → Libraries Rescan Metadata / library metadata refresh job.
Scope:
Affects non-TMDB/TVDB/IMDb-backed media types, especially audiobooks. The button currently describes a generic metadata refresh action, but the implementation is movie/TV-provider-specific.
Version/branch:
Observed on main at 44a19780 (ci(v1): auto-label [v1] proposals so fork/CLI filings reach the board (#146)).
Deployment:
Not deployment-specific; this appears to be server behavior.
Technical notes:
Codex checked the current implementation. The Admin Libraries button calls POST /api/v1/libraries/{id}/refresh-metadata from web/src/hooks/queries/admin/libraries.ts. The backend handler defaults to LibraryRefreshModeQuick in internal/api/handlers/libraries.go. The quick-mode item query in internal/adminjob/library_refresh.go only selects rows where media_items.tmdb_id, media_items.tvdb_id, or media_items.imdb_id is present, then calls RefreshItemForLibrary. This matches the intended role of the button as refreshing text/image metadata for already-matched items, but the matched-item detection needs to use the generic durable provider ID model (media_item_provider_ids) and/or media-type-specific metadata refresh paths so other media types can participate.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsNo status
Activity