diff --git a/pkg/realdebrid/unrestrict.go b/pkg/realdebrid/unrestrict.go index c3c08b9..7042d88 100644 --- a/pkg/realdebrid/unrestrict.go +++ b/pkg/realdebrid/unrestrict.go @@ -32,7 +32,7 @@ func (rd *RealDebrid) canFetchFirstByte(url string) bool { req.Header.Set("Range", "bytes=0-0") // TODO set a proper client - resp, err := http.DefaultClient.Do(req) + resp, err := rd.client.Do(req) if err != nil { time.Sleep(1 * time.Second) // Add a delay before the next retry continue