Change image blurhash mapping to "image type to blurhash"

pull/2676/head
Vasily 4 years ago
parent 279f0da980
commit 0f32b0ffad

@ -718,7 +718,7 @@ namespace Emby.Server.Implementations.Dto
if (options.EnableImages)
{
dto.ImageTags = new Dictionary<ImageType, string>();
dto.ImageBlurHashes = new Dictionary<string, string>();
dto.ImageBlurHashes = new Dictionary<ImageType, string>();
// Prevent implicitly captured closure
var currentItem = item;
@ -736,7 +736,7 @@ namespace Emby.Server.Implementations.Dto
var hash = image.BlurHash;
if (!string.IsNullOrEmpty(hash))
{
dto.ImageBlurHashes[tag] = image.BlurHash;
dto.ImageBlurHashes[image.Type] = image.BlurHash;
}
}
}

@ -514,7 +514,7 @@ namespace MediaBrowser.Model.Dto
/// Gets or sets the blurhashes for the image tags.
/// </summary>
/// <value>The blurhashes.</value>
public Dictionary<string, string> ImageBlurHashes { get; set; }
public Dictionary<ImageType, string> ImageBlurHashes { get; set; }
/// <summary>
/// Gets or sets the series studio.

Loading…
Cancel
Save