mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-19 21:46:11 +05:00
fix link
This commit is contained in:
@@ -5,8 +5,7 @@ import (
|
||||
"fmt"
|
||||
"net/http"
|
||||
"server/ffprobe"
|
||||
|
||||
"server/utils"
|
||||
settings2 "server/settings"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
@@ -20,8 +19,7 @@ func ffp(c *gin.Context) {
|
||||
return
|
||||
}
|
||||
|
||||
host := utils.GetScheme(c) + "://" + c.Request.Host + "/stream?link=" + hash + "&index=" + indexStr + "&play"
|
||||
// log.Println("ffprobe", host)
|
||||
host := "http://127.0.0.1:" + settings2.Port + "/stream?link=" + hash + "&index=" + indexStr + "&play"
|
||||
|
||||
data, err := ffprobe.ProbeUrl(host)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user