pull/70/head
肥羊 2 years ago
parent 5f7328611b
commit 8d5d93d717
  1. 3
      Golang/liveurls/huya.go

@ -84,6 +84,9 @@ func (h *Huya) GetLiveUrl() any {
}
liveInfoJson := gjson.Parse(liveInfoJsonRawString)
streamInfoJsons := liveInfoJson.Get("tLiveStreamInfo.vStreamInfo.value")
if len(streamInfoJsons.Array()) == 0 {
return nil
}
var cdnSlice []string
var finalurl string
streamInfoJsons.ForEach(func(key, value gjson.Result) bool {

Loading…
Cancel
Save