Skip to content

Commit

Permalink
fix readme
Browse files Browse the repository at this point in the history
  • Loading branch information
liz committed Apr 13, 2024
1 parent 53777bc commit c0278ea
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ golang 多线程下载直播流m3u8格式的视屏,跨平台。 你只需指
```bash
自己编译:go build -o m3u8-downloader
简洁使用:./m3u8-downloader -u=http://example.com/index.m3u8
完整使用:./m3u8-downloader -u=http://example.com/index.m3u8 -o=example -n=16 -ht=apiv1 -c="key1=v1; key2=v2"
完整使用:./m3u8-downloader -u=http://example.com/index.m3u8 -o=example -n=16 -ht=v1 -c="key1=v1; key2=v2"
```

### 二进制方式:
Expand All @@ -61,9 +61,9 @@ Linux 和 MacOS 和 Windows PowerShell
.\m3u8-windows-amd64.exe -u=http://example.com/index.m3u8
完整使用:
./m3u8-linux-amd64 -u=http://example.com/index.m3u8 -o=example -n=16 -ht=apiv1 -c="key1=v1; key2=v2"
./m3u8-darwin-amd64 -u=http://example.com/index.m3u8 -o=example -n=16 -ht=apiv1 -c="key1=v1; key2=v2"
.\m3u8-windows-amd64.exe -u=http://example.com/index.m3u8 -o=example -n=16 -ht=apiv1 -c="key1=v1; key2=v2"
./m3u8-linux-amd64 -u=http://example.com/index.m3u8 -o=example -n=16 -ht=v1 -c="key1=v1; key2=v2"
./m3u8-darwin-amd64 -u=http://example.com/index.m3u8 -o=example -n=16 -ht=v1 -c="key1=v1; key2=v2"
.\m3u8-windows-amd64.exe -u=http://example.com/index.m3u8 -o=example -n=16 -ht=v1 -c="key1=v1; key2=v2"
```

## 问题说明
Expand All @@ -82,9 +82,9 @@ func get_host(Url string, ht string) string {
var host string
checkErr(err)
switch ht {
case "apiv1":
case "v1":
host = u.Scheme + "://" + u.Host + path.Dir(u.Path)
case "apiv2":
case "v2":
host = u.Scheme + "://" + u.Host
}
return host
Expand Down

0 comments on commit c0278ea

Please sign in to comment.