The Free Software Media System - Server Backend & API
Fix scan crashed
Bond-009f75024fadea2
diff --git a/Emby.Server.Implementations/Library/LibraryManager.cs b/Emby.Server.Implementations/Library/LibraryManager.csindex edb58e9102..6a20a015ad 100644--- a/Emby.Server.Implementations/Library/LibraryManager.cs+++ b/Emby.Server.Implementations/Library/LibraryManager.cs@@ -2897,7 +2897,8 @@ namespace Emby.Server.Implementations.Library}catch (HttpException ex){- if (ex.StatusCode.HasValue && ex.StatusCode.Value == HttpStatusCode.NotFound)+ if (ex.StatusCode.HasValue+ && (ex.StatusCode.Value == HttpStatusCode.NotFound || ex.StatusCode.Value == HttpStatusCode.Forbidden)){continue;}diff --git a/MediaBrowser.Providers/Manager/ItemImageProvider.cs b/MediaBrowser.Providers/Manager/ItemImageProvider.csindex 32f1a7b2da..6cc3ca3691 100644--- a/MediaBrowser.Providers/Manager/ItemImageProvider.cs+++ b/MediaBrowser.Providers/Manager/ItemImageProvider.cs@@ -475,7 +475,8 @@ namespace MediaBrowser.Providers.Managercatch (HttpException ex){// Sometimes providers send back bad url's. Just move to the next image- if (ex.StatusCode.HasValue && ex.StatusCode.Value == HttpStatusCode.NotFound)+ if (ex.StatusCode.HasValue+ && (ex.StatusCode.Value == HttpStatusCode.NotFound || ex.StatusCode.Value == HttpStatusCode.Forbidden)){continue;}@@ -589,7 +590,8 @@ namespace MediaBrowser.Providers.Managercatch (HttpException ex){// Sometimes providers send back bad urls. Just move onto the next image- if (ex.StatusCode.HasValue && ex.StatusCode.Value == HttpStatusCode.NotFound)+ if (ex.StatusCode.HasValue+ && (ex.StatusCode.Value == HttpStatusCode.NotFound || ex.StatusCode.Value == HttpStatusCode.Forbidden)){continue;}