Skip to content

Commit

Permalink
Merge pull request #30 from ilanyu/master
Browse files Browse the repository at this point in the history
处理部分情况下获取不到m3u8地址的问题
  • Loading branch information
llychao authored Feb 22, 2022
2 parents 157052e + c85a4ad commit a9a3a37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion m3u8-downloader.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ func getHost(Url, ht string) (host string) {
checkErr(err)
switch ht {
case "apiv1":
host = u.Scheme + "://" + u.Host + path.Dir(u.RawPath)
host = u.Scheme + "://" + u.Host + path.Dir(u.EscapedPath())
case "apiv2":
host = u.Scheme + "://" + u.Host
}
Expand Down

0 comments on commit a9a3a37

Please sign in to comment.