wait millis temporary fix nil

This commit is contained in:
YamiOdymel 2022-12-06 21:39:46 +08:00
parent f4a7453a3e
commit 6f3e049179
No known key found for this signature in database
GPG Key ID: 68E469836934DB36
4 changed files with 2 additions and 0 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -97,6 +97,8 @@ func getHLSSource(body string) (string, string) {
func parseHLSSource(url string, baseURL string) string {
_, body, _ := gorequest.New().Get(url).End()
<-time.After(time.Millisecond * 300)
// Decode the HLS table.
p, _, _ := m3u8.DecodeFrom(strings.NewReader(body), true)
master := p.(*m3u8.MasterPlaylist)