mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-19 13:36:09 +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) {
|
||||
if l := c.Query("url"); l != "" {
|
||||
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" {
|
||||
serve(c)
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user