mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-17 22:43:07 +03:00
Add BlurHash support to backend
This commit is contained in:
@@ -718,6 +718,7 @@ namespace Emby.Server.Implementations.Dto
|
||||
if (options.EnableImages)
|
||||
{
|
||||
dto.ImageTags = new Dictionary<ImageType, string>();
|
||||
dto.ImageHashes = new Dictionary<string, string>();
|
||||
|
||||
// Prevent implicitly captured closure
|
||||
var currentItem = item;
|
||||
@@ -732,6 +733,12 @@ namespace Emby.Server.Implementations.Dto
|
||||
{
|
||||
dto.ImageTags[image.Type] = tag;
|
||||
}
|
||||
|
||||
var hash = image.Hash;
|
||||
if (hash != null && hash.Length > 0)
|
||||
{
|
||||
dto.ImageHashes[tag] = image.Hash;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user