From d84370a6f72111b544f1bbcaa8f3b0339148b5f8 Mon Sep 17 00:00:00 2001
From: nicknsy <20588554+nicknsy@users.noreply.github.com>
Date: Sat, 25 Feb 2023 20:36:38 -0800
Subject: [PATCH] Make trickplay response ids have no dashes
---
Emby.Server.Implementations/Dto/DtoService.cs | 4 +++-
MediaBrowser.Model/Dto/BaseItemDto.cs | 2 +-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/Emby.Server.Implementations/Dto/DtoService.cs b/Emby.Server.Implementations/Dto/DtoService.cs
index 10352b6ff8..1687fa442b 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)
diff --git a/MediaBrowser.Model/Dto/BaseItemDto.cs b/MediaBrowser.Model/Dto/BaseItemDto.cs
index ab424c6f5c..3db9cb08b5 100644
--- a/MediaBrowser.Model/Dto/BaseItemDto.cs
+++ b/MediaBrowser.Model/Dto/BaseItemDto.cs
@@ -572,7 +572,7 @@ namespace MediaBrowser.Model.Dto
/// Gets or sets the trickplay manifest.
///
/// The trickplay manifest.
- public Dictionary> Trickplay { get; set; }
+ public Dictionary> Trickplay { get; set; }
///
/// Gets or sets the type of the location.