From f7322360220d440e8b867d512a64caf6c1f5c8e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=82=A5=E7=BE=8A?= Date: Thu, 8 Jun 2023 02:42:39 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E8=99=8E=E7=89=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Golang/liveurls/huya.go | 3 +++ 1 file changed, 3 insertions(+) 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)