Remove download cache

This commit is contained in:
Ben Sarmiento
2024-04-28 02:53:39 +02:00
parent 0acb5d9edb
commit 5da8170c93
2 changed files with 1 additions and 20 deletions

View File

@@ -92,11 +92,6 @@ func (rd *RealDebrid) UnrestrictLink(link string, checkFirstByte bool) (*Downloa
}
defer resp.Body.Close()
if resp.StatusCode != http.StatusOK {
rd.log.Errorf("Unrestrict link request returned status code %d for link %s", resp.StatusCode, link)
// return nil, fmt.Errorf("unrestrict link request returned status code %d", resp.StatusCode)
}
body, err := io.ReadAll(resp.Body)
if err != nil {
// rd.log.Errorf("Error when reading the body of unrestrict link response: %v", err)
@@ -433,10 +428,6 @@ func (rd *RealDebrid) AvailabilityCheck(hashes []string) (AvailabilityResponse,
}
defer resp.Body.Close()
if resp.StatusCode != http.StatusOK {
return nil, fmt.Errorf("error, got response status code %d", resp.StatusCode)
}
var response AvailabilityResponse
err = json.NewDecoder(resp.Body).Decode(&response)
if err != nil {