Use rd client on fetching first byte

This commit is contained in:
Ben Sarmiento
2023-11-26 15:58:22 +01:00
parent 5e5e337387
commit 7a56bbcea0

View File

@@ -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