Make trickplay response ids have no dashes

pull/9554/head
nicknsy 2 years ago committed by Nick
parent 6744e712d3
commit d84370a6f7

@ -1060,7 +1060,9 @@ namespace Emby.Server.Implementations.Dto
if (options.ContainsField(ItemFields.Trickplay)) 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) if (video.ExtraType.HasValue)

@ -572,7 +572,7 @@ namespace MediaBrowser.Model.Dto
/// Gets or sets the trickplay manifest. /// Gets or sets the trickplay manifest.
/// </summary> /// </summary>
/// <value>The trickplay manifest.</value> /// <value>The trickplay manifest.</value>
public Dictionary<Guid, Dictionary<int, TrickplayTilesInfo>> Trickplay { get; set; } public Dictionary<string, Dictionary<int, TrickplayTilesInfo>> Trickplay { get; set; }
/// <summary> /// <summary>
/// Gets or sets the type of the location. /// Gets or sets the type of the location.

Loading…
Cancel
Save