From 8568913df0d515ed37d531703b21584e5a6e719b Mon Sep 17 00:00:00 2001 From: Cody Robibero Date: Thu, 21 Apr 2022 14:26:17 -0600 Subject: [PATCH] Merge pull request #7634 from neilsb/patch-1 Correct LocalTrailerCount in API (cherry picked from commit fcb65ac38df99d85c48f3918b420172c737d9b0e) Signed-off-by: crobibero --- Emby.Server.Implementations/Dto/DtoService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Emby.Server.Implementations/Dto/DtoService.cs b/Emby.Server.Implementations/Dto/DtoService.cs index efcfccafe3..09ba368514 100644 --- a/Emby.Server.Implementations/Dto/DtoService.cs +++ b/Emby.Server.Implementations/Dto/DtoService.cs @@ -1094,7 +1094,7 @@ namespace Emby.Server.Implementations.Dto { if (item is IHasTrailers hasTrailers) { - dto.LocalTrailerCount = hasTrailers.GetTrailerCount(); + dto.LocalTrailerCount = hasTrailers.LocalTrailers.Count; } else {