mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-16 05:43:54 +03:00
[PR #8633] Merge strings from metadata providers with language prioritisation #11805
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Original Pull Request: https://github.com/jellyfin/jellyfin/pull/8633
State: closed
Merged: No
Changes
Merge strings like overview, tagline and title form different providers based on their reported languages.
With this change, missing fields form one provider can be provided by a different provider, even in another language. But if we already have a valid string in the correct language, always use that. But never overwrite data with an empty string.
The logic here is really complex. That's why I added tests for all the cases I could think of.
Issues
Fixes #8064