1
0
Fork 0
mirror of https://github.com/lidarr/Lidarr synced 2025-01-02 21:15:05 +00:00

Fixed: Retrying download on not suppressed HTTP errors

This commit is contained in:
Bogdan 2024-04-25 14:38:31 +03:00
parent 2e242aeb7b
commit b0038dd143

View file

@ -32,6 +32,7 @@ public abstract class DownloadClientBase<TSettings> : IDownloadClient
{
{ Result.HasHttpServerError: true } => PredicateResult.True(),
{ Result.StatusCode: HttpStatusCode.RequestTimeout } => PredicateResult.True(),
{ Exception: HttpException { Response.HasHttpServerError: true } } => PredicateResult.True(),
_ => PredicateResult.False()
},
Delay = TimeSpan.FromSeconds(3),