The Free Software Media System - Server Backend & API
Handle errors during blurhash generation so it does not fail the scan
Vasily6c9dc0418961
diff --git a/Emby.Server.Implementations/Library/LibraryManager.cs b/Emby.Server.Implementations/Library/LibraryManager.csindex e63776bfff..903c0b3cfb 100644--- a/Emby.Server.Implementations/Library/LibraryManager.cs+++ b/Emby.Server.Implementations/Library/LibraryManager.cs@@ -1841,7 +1841,15 @@ namespace Emby.Server.Implementations.LibraryImageDimensions size = _imageProcessor.GetImageDimensions(item, img);img.Width = size.Width;img.Height = size.Height;- img.BlurHash = _imageProcessor.GetImageBlurHash(img.Path);+ try+ {+ img.BlurHash = _imageProcessor.GetImageBlurHash(img.Path);+ }+ catch (Exception ex)+ {+ _logger.LogError(ex, "Cannot compute blurhash for {0}", img.Path);+ img.BlurHash = string.Empty;+ }});_itemRepository.SaveImages(item);