Skip to content

Commit

Permalink
Merge pull request #68 from xiaohail/master
Browse files Browse the repository at this point in the history
拼接URL时,如果/开头,则去掉前缀
  • Loading branch information
llychao authored Jul 31, 2024
2 parents f75e40e + 874edf9 commit 50f38ac
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions m3u8-downloader.go
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ func getTsList(host, body string) (tsList []TsInfo) {
}
tsList = append(tsList, ts)
} else {
line = strings.TrimPrefix(line, "/")
ts = TsInfo{
Name: fmt.Sprintf(TS_NAME_TEMPLATE, index),
Url: fmt.Sprintf("%s/%s", host, line),
Expand Down

0 comments on commit 50f38ac

Please sign in to comment.