Skip to content
This repository has been archived by the owner on Aug 12, 2020. It is now read-only.

Commit

Permalink
Update regex to end at ytplayer.web_player_context_config instead of …
Browse files Browse the repository at this point in the history
…ytplayer.load
  • Loading branch information
jamestjw authored and corny committed Jun 8, 2020
1 parent e979337 commit 1ba4232
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion video_info.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ func (c *Client) Download(cx context.Context, info *VideoInfo, format *Format, d
}

var (
regexpPlayerConfig = regexp.MustCompile("ytplayer.config = (.*?);ytplayer.load")
regexpPlayerConfig = regexp.MustCompile("ytplayer.config = (.*?);ytplayer.web_player_context_config")
regexpInitialData = regexp.MustCompile(`\["ytInitialData"\] = (.+);`)
regexpInitialPlayerResponse = regexp.MustCompile(`\["ytInitialPlayerResponse"\] = (.+);`)
)
Expand Down

0 comments on commit 1ba4232

Please sign in to comment.