Skip to content

Admin Libraries Rescan Metadata only refreshes TMDB/TVDB/IMDb-backed items #153

Open

Description

@zZebrahz

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:

  1. Open the Silo admin area.
  2. Go to Admin → Libraries.
  3. Click the Rescan Metadata button 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.
  4. 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.

Activity

  1. added
    v1.0-proposed
    on Jun 16, 2026
  2. added
    bug
    triaged
    and removed
    v1.0-proposed
    triaged
    on Sep 19, 2026
  3. added theissue type on Sep 20, 2026
  4. removed
    bug
    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

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions