Change image blurhash mapping to "image type to blurhash"

This commit is contained in:
Vasily 2020-05-26 01:04:40 +03:00
parent 279f0da980
commit 0f32b0ffad
2 changed files with 3 additions and 3 deletions

View File

@ -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;
}
}
}

View File

@ -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.