mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-05-13 04:06:31 +01:00
Update Emby.Server.Implementations/Localization/LocalizationManager.cs
Co-authored-by: theguymadmax <theguymadmax@proton.me>
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user