diff options
| author | Bond-009 <bond.009@outlook.com> | 2025-06-19 11:24:03 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-19 11:24:03 +0200 |
| commit | 965cf93419448da971bc9a17f3f16241bb9a099f (patch) | |
| tree | bffd621b0cca6f204f6a79ce1320d1f62a74b5ac /Emby.Server.Implementations/Dto/DtoService.cs | |
| parent | 70ea3f863aab3c6fe2435cac4e3f567c2726520f (diff) | |
| parent | afa2103d424e92631ef02d00b0f8bc950a2f7054 (diff) | |
Merge pull request #14328 from crobibero/trickplay-info
Use dto instead of db object when returning trickplay
Diffstat (limited to 'Emby.Server.Implementations/Dto/DtoService.cs')
| -rw-r--r-- | Emby.Server.Implementations/Dto/DtoService.cs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Emby.Server.Implementations/Dto/DtoService.cs b/Emby.Server.Implementations/Dto/DtoService.cs index 9e0a6080d..cf886ae82 100644 --- a/Emby.Server.Implementations/Dto/DtoService.cs +++ b/Emby.Server.Implementations/Dto/DtoService.cs @@ -1065,7 +1065,12 @@ namespace Emby.Server.Implementations.Dto if (options.ContainsField(ItemFields.Trickplay)) { - dto.Trickplay = _trickplayManager.GetTrickplayManifest(item).GetAwaiter().GetResult(); + var trickplay = _trickplayManager.GetTrickplayManifest(item).GetAwaiter().GetResult(); + dto.Trickplay = trickplay.ToDictionary( + mediaStream => mediaStream.Key, + mediaStream => mediaStream.Value.ToDictionary( + width => width.Key, + width => new TrickplayInfoDto(width.Value))); } dto.ExtraType = video.ExtraType; |
