mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-19 21:46:11 +05:00
Update msx.go
new MSX
This commit is contained in:
@@ -24,6 +24,14 @@ func SetupRoute(r gin.IRouter) {
|
|||||||
authorized.Any("/msx", func(c *gin.Context) {
|
authorized.Any("/msx", func(c *gin.Context) {
|
||||||
if l := c.Query("url"); l != "" {
|
if l := c.Query("url"); l != "" {
|
||||||
proxy(c, l, c.QueryArray("header")...)
|
proxy(c, l, c.QueryArray("header")...)
|
||||||
|
} else if l = c.Query("indb"); l != "" {
|
||||||
|
var r bool
|
||||||
|
for _, t := range settings.ListTorrent() {
|
||||||
|
if r = t.InfoHash.HexString() == l; r {
|
||||||
|
break
|
||||||
|
}
|
||||||
|
}
|
||||||
|
c.JSON(200, r)
|
||||||
} else if c.Request.Method == "POST" {
|
} else if c.Request.Method == "POST" {
|
||||||
serve(c)
|
serve(c)
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user