Repository navigation
Description
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:
- Have a library (media folder) whose items were matched at some point — items get a per-item metadata language stamped at first match.
- In Admin → Libraries, change that library's Metadata language to a new value (e.g. da).
- Trigger a metadata refresh on the library (quick or full) — or on an individual item via "Refresh metadata".
- 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:
- Branch: main
- Commit: 69c1e6c
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:
Activity
fix(metadata): re-fetch titles/overviews when a library's metadata la…
fix(metadata): re-fetch titles/overviews when a library's metadata la…