From f793acc1aad908518180d4be958a028de317ec60 Mon Sep 17 00:00:00 2001 From: Tim Eisele Date: Thu, 26 Mar 2026 10:06:50 +0100 Subject: Update Emby.Server.Implementations/Localization/LocalizationManager.cs Co-authored-by: theguymadmax --- Emby.Server.Implementations/Localization/LocalizationManager.cs | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'Emby.Server.Implementations/Localization') diff --git a/Emby.Server.Implementations/Localization/LocalizationManager.cs b/Emby.Server.Implementations/Localization/LocalizationManager.cs index f206b820fd..4c1c087184 100644 --- a/Emby.Server.Implementations/Localization/LocalizationManager.cs +++ b/Emby.Server.Implementations/Localization/LocalizationManager.cs @@ -320,6 +320,14 @@ namespace Emby.Server.Implementations.Localization { return value; } + + if (ratingsDictionary is not null && rating.Length > countryCode.Length + && rating.StartsWith(countryCode, StringComparison.OrdinalIgnoreCase) + && (rating[countryCode.Length] == '-' || rating[countryCode.Length] == ':') + && ratingsDictionary.TryGetValue(rating[(countryCode.Length + 1)..].Trim(), out var normalizedValue)) + { + return normalizedValue; + } } else { -- cgit v1.2.3