diff options
| author | Luke <luke.pulverenti@gmail.com> | 2014-12-14 00:38:07 -0500 |
|---|---|---|
| committer | Luke <luke.pulverenti@gmail.com> | 2014-12-14 00:38:07 -0500 |
| commit | 524293ea79ab61228f8326561be70bcca4d0ea8f (patch) | |
| tree | ccfe163c8edafc8dd14b0b63d48712a6d504de9d /MediaBrowser.Server.Implementations/Intros/DefaultIntroProvider.cs | |
| parent | 00da34b90a2f2fcee4d6aa584e25fccebb375b6d (diff) | |
| parent | 9df9723fa8554df0fd51d777d3f781b0136de926 (diff) | |
Merge pull request #954 from MediaBrowser/dev
3.0.5462.0
Diffstat (limited to 'MediaBrowser.Server.Implementations/Intros/DefaultIntroProvider.cs')
| -rw-r--r-- | MediaBrowser.Server.Implementations/Intros/DefaultIntroProvider.cs | 11 |
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) ? |
