pull/15/head
肥羊 3 years ago
parent 868ebf252f
commit d7e60609ca
  1. 3
      Golang/liveurls/douyin.go

@ -148,6 +148,9 @@ func (d *Douyin) GetDouYinUrl() any {
nnres := nnreg.FindAllStringSubmatch(str, -1)
nnnreg := regexp.MustCompile(`(?i)\"hls_pull_url_map\"[\s\S]*?}`)
nnnres := nnnreg.FindAllStringSubmatch(nnres[0][0], -1)
if nnnres == nil {
return nil
}
json.Unmarshal([]byte(`{`+nnnres[0][0]+`}`), &mediamap)
return mediamap["hls_pull_url_map"]["FULL_HD1"]
}

Loading…
Cancel
Save