feat(tv): tv seasons

tv seasons
This commit is contained in:
Nicolai Van der Storm
2022-06-01 14:48:05 +02:00
parent 3e7d64eb47
commit c117b37cd9
5 changed files with 109 additions and 1 deletions

View File

@@ -1031,6 +1031,13 @@ components:
type: array
items:
$ref: '#/components/schemas/WatchProviders'
TvSeasons:
type: object
properties:
seasons:
type: array
items:
$ref: '#/components/schemas/Season'
MediaRequest:
type: object
properties:
@@ -5082,6 +5089,37 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/TvDetails'
/tv/{tvId}/seasons:
get:
summary: Get TV seasons
description: Returns TV seasons based on the provided tvId in a JSON object.
tags:
- tv
parameters:
- in: path
name: tvId
required: true
schema:
type: number
example: 76479
- in: query
name: page
schema:
type: number
example: 1
default: 1
- in: query
name: language
schema:
type: string
example: en
responses:
'200':
description: TV seasons
content:
application/json:
schema:
$ref: '#/components/schemas/TvSeasons'
/tv/{tvId}/season/{seasonId}:
get:
summary: Get season details and episode list