Return an error for 503
This commit is contained in:
@@ -10,7 +10,7 @@ import (
|
||||
|
||||
func ClearDownloads(authCode string) {
|
||||
for {
|
||||
req, err := http.NewRequest("GET", "https://real-debrid.com/downloads?del-all=1&p=1", nil)
|
||||
req, err := http.NewRequest(http.MethodGet, "https://real-debrid.com/downloads?del-all=1&p=1", nil)
|
||||
if err != nil {
|
||||
fmt.Println("Error creating request:", err)
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user