From 7f52f77ef501945a9177cb59a3ff1efa7f22bd11 Mon Sep 17 00:00:00 2001 From: Neil Burrows Date: Thu, 21 Apr 2022 11:03:33 +0100 Subject: [PATCH] Correct LocalTrailerCount in API Revert a change which resulted in the `LocalTrailerCount` including the count of Local and Remote trailers which had been introduced in 10.8. --- 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..6ae4a41a35 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 = (item as IHasTrailers).LocalTrailers.Count; } else {