aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Server.Implementations/Intros/DefaultIntroProvider.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2014-12-02 22:13:03 -0500
committerLuke Pulverenti <luke.pulverenti@gmail.com>2014-12-02 22:13:03 -0500
commit56f6b0335ce40aeab275f1038b96a8ecc642f18f (patch)
tree92d8a4c47dec99f1be6e1aca0bb59bd64b48911b /MediaBrowser.Server.Implementations/Intros/DefaultIntroProvider.cs
parentc48458f215bd5ea1da3ef3636f801a4652e77aa0 (diff)
updated nuget
Diffstat (limited to 'MediaBrowser.Server.Implementations/Intros/DefaultIntroProvider.cs')
-rw-r--r--MediaBrowser.Server.Implementations/Intros/DefaultIntroProvider.cs11
1 files changed, 1 insertions, 10 deletions
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) ?