Skip to content

Commit

Permalink
处理部分情况下获取不到m3u8地址的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
ilanyu committed Feb 16, 2022
1 parent 157052e commit c85a4ad
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 c85a4ad

Please sign in to comment.