mirror of https://github.com/jellyfin/jellyfin.git
Change image blurhash mapping to "image type to blurhash"
This commit is contained in:
parent
279f0da980
commit
0f32b0ffad
|
@ -718,7 +718,7 @@ namespace Emby.Server.Implementations.Dto
|
||||||
if (options.EnableImages)
|
if (options.EnableImages)
|
||||||
{
|
{
|
||||||
dto.ImageTags = new Dictionary<ImageType, string>();
|
dto.ImageTags = new Dictionary<ImageType, string>();
|
||||||
dto.ImageBlurHashes = new Dictionary<string, string>();
|
dto.ImageBlurHashes = new Dictionary<ImageType, string>();
|
||||||
|
|
||||||
// Prevent implicitly captured closure
|
// Prevent implicitly captured closure
|
||||||
var currentItem = item;
|
var currentItem = item;
|
||||||
|
@ -736,7 +736,7 @@ namespace Emby.Server.Implementations.Dto
|
||||||
var hash = image.BlurHash;
|
var hash = image.BlurHash;
|
||||||
if (!string.IsNullOrEmpty(hash))
|
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.
|
/// Gets or sets the blurhashes for the image tags.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <value>The blurhashes.</value>
|
/// <value>The blurhashes.</value>
|
||||||
public Dictionary<string, string> ImageBlurHashes { get; set; }
|
public Dictionary<ImageType, string> ImageBlurHashes { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the series studio.
|
/// Gets or sets the series studio.
|
||||||
|
|
Loading…
Reference in New Issue