The Free Software Media System - Server Backend & API
Update Emby.Server.Implementations/Localization/LocalizationManager.cs
Tim Eiselef793acc1aad9
diff --git a/Emby.Server.Implementations/Localization/LocalizationManager.cs b/Emby.Server.Implementations/Localization/LocalizationManager.csindex 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{