Skip to content

Changing a library's metadata language doesn't re-fetch titles/overviews #211

Closed

Description

@fluxis

Summary

Goal:
Change a library's metadata language (e.g. correct a library from Chinese to Danish) and have its existing items re-fetch their titles/overviews in the new language on the next metadata refresh.

Steps:

  1. Have a library (media folder) whose items were matched at some point — items get a per-item metadata language stamped at first match.
  2. In Admin → Libraries, change that library's Metadata language to a new value (e.g. da).
  3. Trigger a metadata refresh on the library (quick or full) — or on an individual item via "Refresh metadata".
  4. View an item in that library.

Expected:
Items re-fetch from the provider in the library's current metadata language and their displayed title/overview update to it.

Actual:
The displayed title/overview stay in the old language. Re-matching and repeated refreshes never fix it. The only way to change it is editing the database directly. Newly-added items in the same library do get the new language, so the library shows a mix.

What is slow/broken:
Metadata language. Specifically: an item's stored language (media_items.default_metadata_language) is set once at initial match and is never updated afterward — not by a library metadata-language change, not by a quick or full refresh, not by a per-item refresh. A refresh in the new language writes into a side
localization instead of replacing the visible title.

Scope:

  • Happens every time, for every already-matched item; reproducible across all libraries.
  • Quick-mode library refresh makes it worse to notice: it skips items that already have an overview/poster, so a wrongly-languaged-but-otherwise-complete item is never even revisited.

Version/branch:

Reply digest

Changing a library's metadata language (e.g. Chinese→Danish) does not cause existing items to re-fetch titles/overviews in the new language on refresh.

Code references

Verified against code 2026-06-25 (merged PRs + source). Verified not fixed (silo-server).

  • internal/api/handlers/libraries.go: HandleUpdateLibrary only enqueues a re-scan when Paths change; no trigger when MetadataLanguage changes -> existing items aren't re-fetched

Attachments

None.

Source

Imported from Discord:

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

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions