Use rd client on fetching first byte
This commit is contained in:
@@ -32,7 +32,7 @@ func (rd *RealDebrid) canFetchFirstByte(url string) bool {
|
|||||||
req.Header.Set("Range", "bytes=0-0")
|
req.Header.Set("Range", "bytes=0-0")
|
||||||
|
|
||||||
// TODO set a proper client
|
// TODO set a proper client
|
||||||
resp, err := http.DefaultClient.Do(req)
|
resp, err := rd.client.Do(req)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
time.Sleep(1 * time.Second) // Add a delay before the next retry
|
time.Sleep(1 * time.Second) // Add a delay before the next retry
|
||||||
continue
|
continue
|
||||||
|
|||||||
Reference in New Issue
Block a user