aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/Library/LibraryManager.cs
diff options
context:
space:
mode:
authorAnthony Lavado <anthony@lavado.ca>2020-06-22 10:38:32 -0400
committerGitHub <noreply@github.com>2020-06-22 10:38:32 -0400
commit649cccfc05eb6a2647184d3fb1b5e3df001aec96 (patch)
treeffb60fa4e6a9489ea9a2daa78d06db33d539c013 /Emby.Server.Implementations/Library/LibraryManager.cs
parent464066f362a475aac46ce8162360d8d2cbe86b15 (diff)
parentf75024fadea23f374fc865c8da07814cc9b3b3c9 (diff)
Merge pull request #3409 from Bond-009/scanerror
Fix scan crashed
Diffstat (limited to 'Emby.Server.Implementations/Library/LibraryManager.cs')
-rw-r--r--Emby.Server.Implementations/Library/LibraryManager.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/Emby.Server.Implementations/Library/LibraryManager.cs b/Emby.Server.Implementations/Library/LibraryManager.cs
index edb58e910..6a20a015a 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;
}