diff options
| author | Tim Eisele <Tim_Eisele@web.de> | 2026-03-26 10:06:50 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-03-26 10:06:50 +0100 |
| commit | f793acc1aad908518180d4be958a028de317ec60 (patch) | |
| tree | b7d2a26812ada9e48a035ee7af565de15322e98f /Emby.Server.Implementations/Localization | |
| parent | d5fb6f99ef416cd81d547459e256e91debb8f1ec (diff) | |
Update Emby.Server.Implementations/Localization/LocalizationManager.cs
Co-authored-by: theguymadmax <theguymadmax@proton.me>
Diffstat (limited to 'Emby.Server.Implementations/Localization')
| -rw-r--r-- | Emby.Server.Implementations/Localization/LocalizationManager.cs | 8 |
1 files changed, 8 insertions, 0 deletions
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 { |
