diff --git a/Golang/liveurls/huya.go b/Golang/liveurls/huya.go index 65a6840..8321c5c 100644 --- a/Golang/liveurls/huya.go +++ b/Golang/liveurls/huya.go @@ -181,6 +181,9 @@ func (h *Huya) GetLiveUrl() any { str := string(body) freg := regexp.MustCompile(`"(?i)liveLineUrl":"([\s\S]*?)",`) res := freg.FindStringSubmatch(str) + if h.Media == "hls" { + res = nil + } if res == nil || res[1] == "" { sreg := regexp.MustCompile(`(?i)`) nres := sreg.FindStringSubmatch(str)