aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/Dto
diff options
context:
space:
mode:
authorCody Robibero <cody@robibe.ro>2022-04-21 14:26:17 -0600
committercrobibero <cody@robibe.ro>2022-04-28 09:26:45 -0400
commit8568913df0d515ed37d531703b21584e5a6e719b (patch)
tree1e68a4c6a3c71f8a2792bb780da62fd125896565 /Emby.Server.Implementations/Dto
parent2e3c5ed3465c412893a80fe23f11a5496a2c6425 (diff)
Merge pull request #7634 from neilsb/patch-1
Correct LocalTrailerCount in API (cherry picked from commit fcb65ac38df99d85c48f3918b420172c737d9b0e) Signed-off-by: crobibero <cody@robibe.ro>
Diffstat (limited to 'Emby.Server.Implementations/Dto')
-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 efcfccafe..09ba36851 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
{