2
0
Эх сурвалжийг харах

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.
Neil Burrows 3 жил өмнө
parent
commit
7f52f77ef5

+ 1 - 1
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
                 {