Selaa lähdekoodia

#70 - TV library not being displayed

LukePulverenti 12 vuotta sitten
vanhempi
sitoutus
9ecd2bbf91
1 muutettua tiedostoa jossa 5 lisäystä ja 0 poistoa
  1. 5 0
      MediaBrowser.Controller/Library/DtoBuilder.cs

+ 5 - 0
MediaBrowser.Controller/Library/DtoBuilder.cs

@@ -223,6 +223,11 @@ namespace MediaBrowser.Controller.Library
                 _logger.Error("Image file does not exist: {0}", path);
                 return;
             }
+            catch (Exception ex)
+            {
+                _logger.ErrorException("Failed to determine primary image aspect ratio for {0}", ex, path);
+                return;
+            }
 
             foreach (var enhancer in Kernel.Instance.ImageEnhancers
                 .Where(i => i.Supports(item, ImageType.Primary)))