mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-19 13:36:09 +05:00
update msx doc
This commit is contained in:
@@ -148,32 +148,6 @@ const docTemplate = `{
|
||||
}
|
||||
}
|
||||
},
|
||||
"/msx": {
|
||||
"get": {
|
||||
"description": "Multi usage endpoint.",
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"MSX"
|
||||
],
|
||||
"summary": "Multi usage endpoint",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Magnet/hash/link to torrent",
|
||||
"name": "link",
|
||||
"in": "query",
|
||||
"required": true
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "Data returned according to query"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/msx/imdb": {
|
||||
"get": {
|
||||
"description": "Get MSX IMDB informations.",
|
||||
@@ -191,7 +165,7 @@ const docTemplate = `{
|
||||
}
|
||||
}
|
||||
},
|
||||
"/msx/imdb/:id": {
|
||||
"/msx/imdb/{id}": {
|
||||
"get": {
|
||||
"description": "Get MSX IMDB informations.",
|
||||
"produces": [
|
||||
@@ -217,6 +191,32 @@ const docTemplate = `{
|
||||
}
|
||||
}
|
||||
},
|
||||
"/msx/{pth}": {
|
||||
"get": {
|
||||
"description": "Multi usage endpoint.",
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"MSX"
|
||||
],
|
||||
"summary": "Multi usage endpoint",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Route MSX pages",
|
||||
"name": "link",
|
||||
"in": "path",
|
||||
"required": true
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "Data returned according to path"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/play/{hash}/{id}": {
|
||||
"get": {
|
||||
"description": "Play given torrent referenced by hash.",
|
||||
|
||||
@@ -141,32 +141,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"/msx": {
|
||||
"get": {
|
||||
"description": "Multi usage endpoint.",
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"MSX"
|
||||
],
|
||||
"summary": "Multi usage endpoint",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Magnet/hash/link to torrent",
|
||||
"name": "link",
|
||||
"in": "query",
|
||||
"required": true
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "Data returned according to query"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/msx/imdb": {
|
||||
"get": {
|
||||
"description": "Get MSX IMDB informations.",
|
||||
@@ -184,7 +158,7 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"/msx/imdb/:id": {
|
||||
"/msx/imdb/{id}": {
|
||||
"get": {
|
||||
"description": "Get MSX IMDB informations.",
|
||||
"produces": [
|
||||
@@ -210,6 +184,32 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"/msx/{pth}": {
|
||||
"get": {
|
||||
"description": "Multi usage endpoint.",
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"MSX"
|
||||
],
|
||||
"summary": "Multi usage endpoint",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Route MSX pages",
|
||||
"name": "link",
|
||||
"in": "path",
|
||||
"required": true
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "Data returned according to path"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/play/{hash}/{id}": {
|
||||
"get": {
|
||||
"description": "Play given torrent referenced by hash.",
|
||||
|
||||
@@ -393,12 +393,12 @@ paths:
|
||||
summary: Get HTML of magnet links
|
||||
tags:
|
||||
- Pages
|
||||
/msx:
|
||||
/msx/{pth}:
|
||||
get:
|
||||
description: Multi usage endpoint.
|
||||
parameters:
|
||||
- description: Magnet/hash/link to torrent
|
||||
in: query
|
||||
- description: Route MSX pages
|
||||
in: path
|
||||
name: link
|
||||
required: true
|
||||
type: string
|
||||
@@ -406,7 +406,7 @@ paths:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: Data returned according to query
|
||||
description: Data returned according to path
|
||||
summary: Multi usage endpoint
|
||||
tags:
|
||||
- MSX
|
||||
@@ -421,7 +421,7 @@ paths:
|
||||
summary: Get MSX IMDB informations
|
||||
tags:
|
||||
- MSX
|
||||
/msx/imdb/:id:
|
||||
/msx/imdb/{id}:
|
||||
get:
|
||||
description: Get MSX IMDB informations.
|
||||
parameters:
|
||||
|
||||
@@ -43,11 +43,11 @@ func SetupRoute(r *gin.RouterGroup) {
|
||||
//
|
||||
// @Tags MSX
|
||||
//
|
||||
// @Param link query string true "Magnet/hash/link to torrent"
|
||||
// @Param link path string true "Route MSX pages"
|
||||
//
|
||||
// @Produce json
|
||||
// @Success 200 "Data returned according to query"
|
||||
// @Router /msx [get]
|
||||
// @Success 200 "Data returned according to path"
|
||||
// @Router /msx/{pth} [get]
|
||||
func msxPTH(c *gin.Context) {
|
||||
js := []string{"http://msx.benzac.de/js/tvx-plugin.min.js"}
|
||||
switch p := c.Param("pth"); p {
|
||||
@@ -114,7 +114,7 @@ func msxIMDB(c *gin.Context) {
|
||||
//
|
||||
// @Produce json
|
||||
// @Success 200 "JSON MSX IMDB informations"
|
||||
// @Router /msx/imdb/:id [get]
|
||||
// @Router /msx/imdb/{id} [get]
|
||||
func msxIMDBID(c *gin.Context) {
|
||||
idb.Lock()
|
||||
defer idb.Unlock()
|
||||
|
||||
Reference in New Issue
Block a user