mirror of
https://gitlab.com/foxixus/neomovies-api.git
synced 2025-10-28 01:48:51 +05:00
fix: remove season/episode support from Lumex and Vibix
- Remove season/episode parameters from Lumex (not supported by API) - Remove season/episode parameters from Vibix (not working properly) - Improve redirect protection for English players: * Block window.close * Override window.location with getters/setters * Add mousedown event blocking * Add location change monitoring (100ms interval) * Prevent all forms of navigation - Update API documentation to reflect changes - Simplify player handlers code
This commit is contained in:
@@ -330,7 +330,7 @@ func getOpenAPISpecWithURL(baseURL string) *OpenAPISpec {
|
||||
"/api/v1/players/lumex/{imdb_id}": map[string]interface{}{
|
||||
"get": map[string]interface{}{
|
||||
"summary": "Плеер Lumex",
|
||||
"description": "Получение плеера Lumex по IMDb ID. Формат URL: /movie/{id} для фильмов, /tv-series/{id}?season=X&episode=Y для сериалов",
|
||||
"description": "Получение плеера Lumex по IMDb ID. Не поддерживает выбор сезона/серии - плеер работает напрямую с IMDb ID",
|
||||
"tags": []string{"Players"},
|
||||
"parameters": []map[string]interface{}{
|
||||
{
|
||||
@@ -340,20 +340,6 @@ func getOpenAPISpecWithURL(baseURL string) *OpenAPISpec {
|
||||
"schema": map[string]string{"type": "string"},
|
||||
"description": "IMDb ID фильма или сериала (например, tt0133093)",
|
||||
},
|
||||
{
|
||||
"name": "season",
|
||||
"in": "query",
|
||||
"required": false,
|
||||
"schema": map[string]string{"type": "integer"},
|
||||
"description": "Номер сезона (для сериалов)",
|
||||
},
|
||||
{
|
||||
"name": "episode",
|
||||
"in": "query",
|
||||
"required": false,
|
||||
"schema": map[string]string{"type": "integer"},
|
||||
"description": "Номер серии (для сериалов)",
|
||||
},
|
||||
},
|
||||
"responses": map[string]interface{}{
|
||||
"200": map[string]interface{}{
|
||||
@@ -365,32 +351,32 @@ func getOpenAPISpecWithURL(baseURL string) *OpenAPISpec {
|
||||
},
|
||||
},
|
||||
},
|
||||
"/api/v1/players/vibix/{imdb_id}": map[string]interface{}{
|
||||
"get": map[string]interface{}{
|
||||
"summary": "Vibix плеер по IMDb ID",
|
||||
"description": "Возвращает HTML-страницу с iframe Vibix для указанного IMDb ID",
|
||||
"tags": []string{"Players"},
|
||||
"parameters": []map[string]interface{}{
|
||||
{
|
||||
"name": "imdb_id",
|
||||
"in": "path",
|
||||
"required": true,
|
||||
"schema": map[string]string{"type": "string"},
|
||||
"description": "IMDb ID, например tt0133093",
|
||||
},
|
||||
},
|
||||
"responses": map[string]interface{}{
|
||||
"200": map[string]interface{}{
|
||||
"description": "HTML со встроенным Vibix плеером",
|
||||
"content": map[string]interface{}{
|
||||
"text/html": map[string]interface{}{},
|
||||
},
|
||||
},
|
||||
"404": map[string]interface{}{"description": "Фильм не найден"},
|
||||
"503": map[string]interface{}{"description": "VIBIX_TOKEN не настроен"},
|
||||
"/api/v1/players/vibix/{imdb_id}": map[string]interface{}{
|
||||
"get": map[string]interface{}{
|
||||
"summary": "Vibix плеер по IMDb ID",
|
||||
"description": "Возвращает HTML-страницу с iframe Vibix для указанного IMDb ID. Не поддерживает выбор сезона/серии - плеер работает напрямую с IMDb ID",
|
||||
"tags": []string{"Players"},
|
||||
"parameters": []map[string]interface{}{
|
||||
{
|
||||
"name": "imdb_id",
|
||||
"in": "path",
|
||||
"required": true,
|
||||
"schema": map[string]string{"type": "string"},
|
||||
"description": "IMDb ID, например tt0133093",
|
||||
},
|
||||
},
|
||||
"responses": map[string]interface{}{
|
||||
"200": map[string]interface{}{
|
||||
"description": "HTML со встроенным Vibix плеером",
|
||||
"content": map[string]interface{}{
|
||||
"text/html": map[string]interface{}{},
|
||||
},
|
||||
},
|
||||
"404": map[string]interface{}{"description": "Фильм не найден"},
|
||||
"503": map[string]interface{}{"description": "VIBIX_TOKEN не настроен"},
|
||||
},
|
||||
},
|
||||
},
|
||||
"/api/v1/players/vidsrc/{media_type}/{imdb_id}": map[string]interface{}{
|
||||
"get": map[string]interface{}{
|
||||
"summary": "Vidsrc плеер (английский)",
|
||||
|
||||
Reference in New Issue
Block a user