Procházet zdrojové kódy

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 před 3 roky
rodič
revize
7f52f77ef5
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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
                 {