From b1dd7ef2a0bb5aeec32eb0e1f5a1d40182adb929 Mon Sep 17 00:00:00 2001 From: gan-of-culture Date: Mon, 3 May 2021 15:34:32 +0200 Subject: [PATCH] added another 50 ms --- extractor/hentaistream/hentaistream.go | 2 +- request/request.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/extractor/hentaistream/hentaistream.go b/extractor/hentaistream/hentaistream.go index 9f72335..b6ae0ae 100644 --- a/extractor/hentaistream/hentaistream.go +++ b/extractor/hentaistream/hentaistream.go @@ -104,7 +104,7 @@ func extractData(URL string) (static.Data, error) { } if strings.Contains(htmlString, "DDOS-GUARD") { - time.Sleep(150 * time.Millisecond) + time.Sleep(200 * time.Millisecond) htmlString, err = request.Get(URL) } diff --git a/request/request.go b/request/request.go index 8571440..25c6e32 100644 --- a/request/request.go +++ b/request/request.go @@ -115,7 +115,7 @@ func Size(url, refer string) (int64, error) { return 0, err } if resp.StatusCode == 503 { - time.Sleep(150 * time.Millisecond) + time.Sleep(200 * time.Millisecond) resp, err = Request(http.MethodGet, url, map[string]string{ "Range": "bytes=0-0", })