Skip to content

Commit 2b7e954

Browse files
authored
Change scraping regex for TTS key(tkk) (#2)
1 parent 3195637 commit 2b7e954

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

.DS_Store

6 KB
Binary file not shown.

googletts/token.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
)
1010

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

1414
// GetTTSToken gets TTS token.
1515
func GetTTSToken(text string) (string, error) {

0 commit comments

Comments
 (0)