Unrestrict uses download timeout
This commit is contained in:
@@ -249,6 +249,9 @@ func (r *HTTPClient) shouldRetry(resp *http.Response, reqHasRangeHeader bool, er
|
||||
}
|
||||
}
|
||||
if err != nil && strings.Contains(err.Error(), "timeout") {
|
||||
if resp.Request.URL.Host == "api.real-debrid.com" && !strings.Contains(resp.Request.URL.Path, "unrestrict/") {
|
||||
r.log.Warnf("Request timed out, adjust the timeout value in the config")
|
||||
}
|
||||
return 1
|
||||
}
|
||||
if resp != nil {
|
||||
|
||||
Reference in New Issue
Block a user