Skip to content

Commit

Permalink
added another 50 ms
Browse files Browse the repository at this point in the history
  • Loading branch information
gan-of-culture committed May 3, 2021
1 parent 19a4516 commit b1dd7ef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion extractor/hentaistream/hentaistream.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ func extractData(URL string) (static.Data, error) {
}

if strings.Contains(htmlString, "<title>DDOS-GUARD</title>") {
time.Sleep(150 * time.Millisecond)
time.Sleep(200 * time.Millisecond)
htmlString, err = request.Get(URL)
}

Expand Down
2 changes: 1 addition & 1 deletion request/request.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
})
Expand Down

0 comments on commit b1dd7ef

Please sign in to comment.