Fix scan crashed

This commit is contained in:
Bond-009
2020-06-22 10:06:35 +02:00
parent bb947718ea
commit f75024fade
2 changed files with 6 additions and 3 deletions

View File

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