修复bug

main v1.17.1
orestonce 2022-12-25 13:00:55 +08:00
parent 8904ddbfd7
commit dc26c9b80f
1 changed files with 3 additions and 0 deletions

View File

@ -352,6 +352,9 @@ func (this *downloadEnv) getM3u8Key(m3u8Url string, html string) (key string, er
}
uriPos := strings.Index(line, "URI")
quotationMarkPos := strings.LastIndex(line, "\"")
if uriPos == -1 || quotationMarkPos == -1 {
continue
}
keyUrl := strings.Split(line[uriPos:quotationMarkPos], "\"")[1]
if !strings.Contains(line, "http") {
var errMsg string