Skip to content

Commit

Permalink
Change scraping regex for TTS key(tkk) (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
evalphobia authored Nov 30, 2018
1 parent 3195637 commit 2b7e954
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Binary file added .DS_Store
Binary file not shown.
2 changes: 1 addition & 1 deletion googletts/token.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
)

// get token seed from HTML.
var tokenRegex = regexp.MustCompile(`;TKK='([\d]+)\.([\d]+)';`)
var tokenRegex = regexp.MustCompile(`,tkk:'([\d]+)\.([\d]+)',`)

// GetTTSToken gets TTS token.
func GetTTSToken(text string) (string, error) {
Expand Down

0 comments on commit 2b7e954

Please sign in to comment.