mirror of
https://github.com/bluenviron/mediamtx
synced 2024-12-14 02:34:52 +00:00
parent
9eb97ad3a0
commit
df3dfea132
@ -7,6 +7,7 @@ import (
|
||||
"log"
|
||||
"net/http"
|
||||
"os"
|
||||
"strings"
|
||||
)
|
||||
|
||||
func do() error {
|
||||
@ -16,7 +17,7 @@ func do() error {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
version := string(buf[:len(buf)-1])
|
||||
version := strings.TrimSpace(string(buf))
|
||||
|
||||
res, err := http.Get("https://cdn.jsdelivr.net/npm/hls.js@" + version + "/dist/hls.min.js")
|
||||
if err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user