From 56f6b0335ce40aeab275f1038b96a8ecc642f18f Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Tue, 2 Dec 2014 22:13:03 -0500 Subject: updated nuget --- .../Intros/DefaultIntroProvider.cs | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'MediaBrowser.Server.Implementations/Intros/DefaultIntroProvider.cs') diff --git a/MediaBrowser.Server.Implementations/Intros/DefaultIntroProvider.cs b/MediaBrowser.Server.Implementations/Intros/DefaultIntroProvider.cs index 2d991abba..fd1cc9484 100644 --- a/MediaBrowser.Server.Implementations/Intros/DefaultIntroProvider.cs +++ b/MediaBrowser.Server.Implementations/Intros/DefaultIntroProvider.cs @@ -59,7 +59,7 @@ namespace MediaBrowser.Server.Implementations.Intros } var ratingLevel = string.IsNullOrWhiteSpace(item.OfficialRating) - ? (int?)null + ? null : _localization.GetRatingLevel(item.OfficialRating); var libaryItems = user.RootFolder.GetRecursiveChildren(user, false) @@ -134,15 +134,6 @@ namespace MediaBrowser.Server.Implementations.Intros WatchingItem = item, Random = random })); - - candidates.AddRange(libaryItems.Where(i => i is Trailer).Select(i => new ItemWithTrailer - { - Item = i, - Type = ItemWithTrailerType.LibraryTrailer, - User = user, - WatchingItem = item, - Random = random - })); } var customIntros = !string.IsNullOrWhiteSpace(config.CustomIntroPath) ? -- cgit v1.2.3