aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/Dto/DtoService.cs
diff options
context:
space:
mode:
authorSL1288 <SL1288@SL1288.SL1288>2019-08-19 18:40:39 +0200
committerSL1288 <SL1288@SL1288.SL1288>2019-08-19 18:56:41 +0200
commitfdc24ec2eeffec4334c705631439de72cf6c8bdd (patch)
tree37fa3c3fcef957a365d648084aad9c723712c8e4 /Emby.Server.Implementations/Dto/DtoService.cs
parentc8474f734c779d61444a6e48de9ff7825d7904c9 (diff)
Fix LocalTrailers playback.
Diffstat (limited to 'Emby.Server.Implementations/Dto/DtoService.cs')
-rw-r--r--Emby.Server.Implementations/Dto/DtoService.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Emby.Server.Implementations/Dto/DtoService.cs b/Emby.Server.Implementations/Dto/DtoService.cs
index 1a7f10634..97ddfff53 100644
--- a/Emby.Server.Implementations/Dto/DtoService.cs
+++ b/Emby.Server.Implementations/Dto/DtoService.cs
@@ -1079,7 +1079,7 @@ namespace Emby.Server.Implementations.Dto
allExtras = item.GetExtras().ToArray();
}
- dto.LocalTrailerCount = allExtras.Count(i => i.ExtraType.HasValue && i.ExtraType.Value == ExtraType.Trailer);
+ dto.LocalTrailerCount = allExtras.Count(i => i.ExtraType.HasValue && i.ExtraType.Value == ExtraType.Trailer) + item.GetTrailers().Count();
}
// Add EpisodeInfo