aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations
diff options
context:
space:
mode:
authorAndrew Rabert <6550543+nvllsvm@users.noreply.github.com>2019-08-27 19:02:05 -0400
committerGitHub <noreply@github.com>2019-08-27 19:02:05 -0400
commit24775f49885ea6dc9a7de2200ee0de8f84918dd9 (patch)
tree697f16e945b8fd37d505426b386586f9e360d7de /Emby.Server.Implementations
parentf255788383dead8f172c9e585bc589247164382f (diff)
parentfdc24ec2eeffec4334c705631439de72cf6c8bdd (diff)
Merge pull request #1651 from sl1288/master
Fix local trailers playback
Diffstat (limited to 'Emby.Server.Implementations')
-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