Selaa lähdekoodia

Change image blurhash mapping to "image type to blurhash"

Vasily 5 vuotta sitten
vanhempi
sitoutus
0f32b0ffad

+ 2 - 2
Emby.Server.Implementations/Dto/DtoService.cs

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

+ 1 - 1
MediaBrowser.Model/Dto/BaseItemDto.cs

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