diff options
| author | Luke <luke.pulverenti@gmail.com> | 2017-05-21 03:26:26 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-05-21 03:26:26 -0400 |
| commit | 459dd30033bffbae1139425527760f10c5875391 (patch) | |
| tree | 272885f917e0583cb7f0ec19836f857fe779c65e /Emby.Server.Implementations/Library/LocalTrailerPostScanTask.cs | |
| parent | fe7e8fb5f898aadb420855738ec5b4d9d6a84694 (diff) | |
| parent | d3fdfbb36853ff8937e0f49c2cf8fa2a23a5c114 (diff) | |
Merge pull request #2654 from MediaBrowser/dev
Dev
Diffstat (limited to 'Emby.Server.Implementations/Library/LocalTrailerPostScanTask.cs')
| -rw-r--r-- | Emby.Server.Implementations/Library/LocalTrailerPostScanTask.cs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Emby.Server.Implementations/Library/LocalTrailerPostScanTask.cs b/Emby.Server.Implementations/Library/LocalTrailerPostScanTask.cs index 7424ed5e5..e64980dff 100644 --- a/Emby.Server.Implementations/Library/LocalTrailerPostScanTask.cs +++ b/Emby.Server.Implementations/Library/LocalTrailerPostScanTask.cs @@ -6,6 +6,7 @@ using System; using System.Linq; using System.Threading; using System.Threading.Tasks; +using MediaBrowser.Controller.Dto; using MediaBrowser.Controller.Entities.Movies; using MediaBrowser.Controller.Entities.TV; @@ -27,7 +28,8 @@ namespace Emby.Server.Implementations.Library var items = _libraryManager.GetItemList(new InternalItemsQuery { IncludeItemTypes = new[] { typeof(BoxSet).Name, typeof(Game).Name, typeof(Movie).Name, typeof(Series).Name }, - Recursive = true + Recursive = true, + DtoOptions = new DtoOptions(true) }).OfType<IHasTrailers>().ToList(); @@ -40,7 +42,8 @@ namespace Emby.Server.Implementations.Library { IncludeItemTypes = new[] { typeof(Trailer).Name }, TrailerTypes = trailerTypes, - Recursive = true + Recursive = true, + DtoOptions = new DtoOptions(false) }).ToArray(); |
