Procházet zdrojové kódy

Merge pull request #7634 from neilsb/patch-1

Correct LocalTrailerCount in API
Cody Robibero před 3 roky
rodič
revize
fcb65ac38d
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 = hasTrailers.LocalTrailers.Count;
                 }
                 else
                 {