mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-19 21:46:11 +05:00
change api ffprobe link
This commit is contained in:
@@ -5,7 +5,7 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"net/http"
|
"net/http"
|
||||||
"server/ffprobe"
|
"server/ffprobe"
|
||||||
settings2 "server/settings"
|
sets "server/settings"
|
||||||
|
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
)
|
)
|
||||||
@@ -19,9 +19,9 @@ func ffp(c *gin.Context) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
host := "http://127.0.0.1:" + settings2.Port + "/stream?link=" + hash + "&index=" + indexStr + "&play"
|
link := "http://127.0.0.1:" + sets.Port + "/play/" + hash + "/" + indexStr
|
||||||
|
|
||||||
data, err := ffprobe.ProbeUrl(host)
|
data, err := ffprobe.ProbeUrl(link)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
c.AbortWithError(http.StatusBadRequest, fmt.Errorf("error getting data: %v", err))
|
c.AbortWithError(http.StatusBadRequest, fmt.Errorf("error getting data: %v", err))
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user