diff options
| author | nicknsy <20588554+nicknsy@users.noreply.github.com> | 2023-02-25 20:36:38 -0800 |
|---|---|---|
| committer | Nick <20588554+nicknsy@users.noreply.github.com> | 2023-06-22 16:23:51 -0700 |
| commit | d84370a6f72111b544f1bbcaa8f3b0339148b5f8 (patch) | |
| tree | a99f75bdeae66c9646e5c765924c49833303e3be /Emby.Server.Implementations | |
| parent | 6744e712d3a4fd6f800e5499c90b247787e48cb6 (diff) | |
Make trickplay response ids have no dashes
Diffstat (limited to 'Emby.Server.Implementations')
| -rw-r--r-- | Emby.Server.Implementations/Dto/DtoService.cs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Emby.Server.Implementations/Dto/DtoService.cs b/Emby.Server.Implementations/Dto/DtoService.cs index 10352b6ff..1687fa442 100644 --- a/Emby.Server.Implementations/Dto/DtoService.cs +++ b/Emby.Server.Implementations/Dto/DtoService.cs @@ -1060,7 +1060,9 @@ namespace Emby.Server.Implementations.Dto if (options.ContainsField(ItemFields.Trickplay)) { - dto.Trickplay = _itemRepo.GetTrickplayManifest(item); + // To stay consistent with other fields, this must go from a Guid to a non-dashed string. + // This does not seem to occur automatically to dictionaries like it does with other Guid fields. + dto.Trickplay = _itemRepo.GetTrickplayManifest(item).ToDictionary(x => x.Key.ToString("N", CultureInfo.InvariantCulture), y => y.Value); } if (video.ExtraType.HasValue) |
