Merge pull request #17 from menggangaaa/patch-1

修复加密m3u8获取key文件相对路径url错误
main v1.17.2
orestonce 2023-02-09 15:15:49 +08:00 committed by GitHub
commit 17a66b55f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -358,7 +358,7 @@ func (this *downloadEnv) getM3u8Key(m3u8Url string, html string) (key string, er
keyUrl := strings.Split(line[uriPos:quotationMarkPos], "\"")[1]
if !strings.Contains(line, "http") {
var errMsg string
keyUrl, errMsg = resolveRefUrl(m3u8Url, line)
keyUrl, errMsg = resolveRefUrl(m3u8Url, keyUrl)
if errMsg != "" {
return "", errors.New(errMsg)
}