Catch bw limit errors and prevent repair loops
This commit is contained in:
@@ -113,8 +113,11 @@ func (rd *RealDebrid) UnrestrictLink(link string, verifyDownloadURL bool) (*Down
|
||||
}
|
||||
|
||||
// will only check for first byte if serving from rclone
|
||||
if verifyDownloadURL && !rd.downloadClient.VerifyURL(response.Download) {
|
||||
return nil, fmt.Errorf("download URL verification failed: %s", response.Download)
|
||||
if verifyDownloadURL {
|
||||
err := rd.downloadClient.VerifyURL(response.Download)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
}
|
||||
|
||||
// rd.log.Debugf("Unrestricted link %s into %s", link, response.Download)
|
||||
|
||||
Reference in New Issue
Block a user