diff options
Diffstat (limited to 'MediaBrowser.Server.Implementations/Localization/LocalizationManager.cs')
| -rw-r--r-- | MediaBrowser.Server.Implementations/Localization/LocalizationManager.cs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/MediaBrowser.Server.Implementations/Localization/LocalizationManager.cs b/MediaBrowser.Server.Implementations/Localization/LocalizationManager.cs index 41f18b9a0..817994c04 100644 --- a/MediaBrowser.Server.Implementations/Localization/LocalizationManager.cs +++ b/MediaBrowser.Server.Implementations/Localization/LocalizationManager.cs @@ -237,6 +237,14 @@ namespace MediaBrowser.Server.Implementations.Localization } } + // Try and support ratings that are incorrectly prefixed with localization values (GB-PG, which is really just PG) + var index = rating.IndexOf('-'); + + if (index != -1) + { + return GetRatingLevel(rating.Substring(index + 1)); + } + return value == null ? (int?)null : value.Value; } } |
