Skip to content

Commit

Permalink
fix: Added cookie to skip ad (and get the correct html page)
Browse files Browse the repository at this point in the history
  • Loading branch information
AnotherXDay authored and gan-of-culture committed Jun 7, 2023
1 parent 709136d commit 673e3aa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion extractors/htstreaming/htstreaming.go
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,9 @@ func getPlayerURL(URL *string) (string, error) {
return playerURL, nil
}

htmlString, err := request.Get(*URL)
htmlString, err := request.GetWithHeaders(*URL, map[string]string{
"Cookie": "inter=1",
})
if err != nil {
log.Println(htmlString)
return "", err
Expand Down

0 comments on commit 673e3aa

Please sign in to comment.