This commit is contained in:
YouROK
2023-02-27 23:29:44 +03:00
parent f409959b3d
commit edb46b7e0c

View File

@@ -5,8 +5,7 @@ import (
"fmt" "fmt"
"net/http" "net/http"
"server/ffprobe" "server/ffprobe"
settings2 "server/settings"
"server/utils"
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
) )
@@ -20,8 +19,7 @@ func ffp(c *gin.Context) {
return return
} }
host := utils.GetScheme(c) + "://" + c.Request.Host + "/stream?link=" + hash + "&index=" + indexStr + "&play" host := "http://127.0.0.1:" + settings2.Port + "/stream?link=" + hash + "&index=" + indexStr + "&play"
// log.Println("ffprobe", host)
data, err := ffprobe.ProbeUrl(host) data, err := ffprobe.ProbeUrl(host)
if err != nil { if err != nil {