aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/Dto/DtoService.cs
diff options
context:
space:
mode:
authorJesús Higueras <jesus@dabbleam.com>2020-03-23 20:05:49 +0100
committerVasily <just.one.man@yandex.ru>2020-05-18 23:21:37 +0300
commitb9fc0d26287e46017515e4ac3e569ca2c60f622f (patch)
tree7168d3272a2ead08c2cb6171d1d2f9dc794df262 /Emby.Server.Implementations/Dto/DtoService.cs
parent2d2c1d94733a1959f84c1cc26f8051d0be35cfb4 (diff)
Add BlurHash support to backend
Diffstat (limited to 'Emby.Server.Implementations/Dto/DtoService.cs')
-rw-r--r--Emby.Server.Implementations/Dto/DtoService.cs7
1 files changed, 7 insertions, 0 deletions
diff --git a/Emby.Server.Implementations/Dto/DtoService.cs b/Emby.Server.Implementations/Dto/DtoService.cs
index c4b65d265..a34a3a192 100644
--- a/Emby.Server.Implementations/Dto/DtoService.cs
+++ b/Emby.Server.Implementations/Dto/DtoService.cs
@@ -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;
+ }
}
}
}