Bläddra i källkod

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 år sedan
förälder
incheckning
7f52f77ef5
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      Emby.Server.Implementations/Dto/DtoService.cs

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