Skip to content

Commit

Permalink
Bypass ads (again).
Browse files Browse the repository at this point in the history
  • Loading branch information
Hakkin committed Nov 23, 2020
1 parent a0acd58 commit cac8ed4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion access.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func getAcessToken(c *http.Client, username string) (*accessToken, error) {

query := aURL.Query()

query.Set("platform", "_")
query.Set("player_type", "embed")

aURL.RawQuery = query.Encode()

Expand Down
2 changes: 2 additions & 0 deletions urls.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ func getURLs(c *http.Client, playlist string) ([]string, error) {
return nil, err
}

req.Header.Set("Origin", "https://player.twitch.tv")

res, err := c.Do(req)
if err != nil {
return nil, err
Expand Down

0 comments on commit cac8ed4

Please sign in to comment.