Merge pull request #1651 from sl1288/master

Fix local trailers playback
This commit is contained in:
Andrew Rabert
2019-08-27 19:02:05 -04:00
committed by GitHub
3 changed files with 15 additions and 5 deletions

View File

@@ -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