mirror of
https://github.com/bluenviron/mediamtx.git
synced 2025-12-25 20:41:59 -08:00
parent
9eb97ad3a0
commit
df3dfea132
1 changed files with 2 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue