修复斗鱼直播间id为8位时无法播放的问题

pull/25/head
CedarHuang 3 years ago committed by GitHub
parent cc97877bf0
commit c235004f78
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      Golang/liveurls/douyu.go

@ -43,7 +43,7 @@ func (d *Douyu) GetRealUrl() any {
resp, _ := client.Do(r)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
roomidreg := regexp.MustCompile(`(?i)rid":(\d{1,7}),"vipId`)
roomidreg := regexp.MustCompile(`(?i)rid":(\d{1,8}),"vipId`)
roomidres := roomidreg.FindStringSubmatch(string(body))
if roomidres == nil {
return nil

Loading…
Cancel
Save