From 092c245d9ae7149983fb589db7634802a30ed0b0 Mon Sep 17 00:00:00 2001 From: Eric Reed Date: Wed, 24 Jul 2013 11:45:04 -0400 Subject: [PATCH 1/2] Fix TV ratings (and NC-17) not working with PC --- .../Localization/LocalizationManager.cs | 8 -------- 1 file changed, 8 deletions(-) diff --git a/MediaBrowser.Server.Implementations/Localization/LocalizationManager.cs b/MediaBrowser.Server.Implementations/Localization/LocalizationManager.cs index 817994c04..41f18b9a0 100644 --- a/MediaBrowser.Server.Implementations/Localization/LocalizationManager.cs +++ b/MediaBrowser.Server.Implementations/Localization/LocalizationManager.cs @@ -237,14 +237,6 @@ 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; } } From 0edc717ec8f5cc8b451d99cdeb1aec8619a8c1a9 Mon Sep 17 00:00:00 2001 From: Eric Reed Date: Wed, 24 Jul 2013 16:12:07 -0400 Subject: [PATCH 2/2] Remove Index by Rating option until we have time to implement --- MediaBrowser.Controller/Entities/Folder.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MediaBrowser.Controller/Entities/Folder.cs b/MediaBrowser.Controller/Entities/Folder.cs index 843b90b6c..3a5cd1b40 100644 --- a/MediaBrowser.Controller/Entities/Folder.cs +++ b/MediaBrowser.Controller/Entities/Folder.cs @@ -206,7 +206,7 @@ namespace MediaBrowser.Controller.Entities {LocalizedStrings.Instance.GetString("GenreDispPref"), GetIndexByGenre}, {LocalizedStrings.Instance.GetString("DirectorDispPref"), GetIndexByDirector}, {LocalizedStrings.Instance.GetString("YearDispPref"), GetIndexByYear}, - {LocalizedStrings.Instance.GetString("OfficialRatingDispPref"), null}, + //{LocalizedStrings.Instance.GetString("OfficialRatingDispPref"), null}, {LocalizedStrings.Instance.GetString("StudioDispPref"), GetIndexByStudio} };