Просмотр исходного кода

Merge pull request #7634 from neilsb/patch-1

Correct LocalTrailerCount in API
Cody Robibero 3 лет назад
Родитель
Сommit
fcb65ac38d
1 измененных файлов с 1 добавлено и 1 удалено
  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
                 {