mirror of
https://github.com/TeamPiped/OpenAPI.git
synced 2024-08-14 23:56:55 +00:00
Add properties for VideoItem.
This commit is contained in:
parent
2776a3d304
commit
a903ff779f
1 changed files with 72 additions and 0 deletions
72
swagger.yaml
72
swagger.yaml
|
@ -285,10 +285,67 @@ components:
|
|||
type: array
|
||||
items:
|
||||
$ref: "#/components/schemas/Stream"
|
||||
videoStreams:
|
||||
type: array
|
||||
items:
|
||||
$ref: "#/components/schemas/Stream"
|
||||
description:
|
||||
type: string
|
||||
description: The video's description.
|
||||
dislikes:
|
||||
type: integer
|
||||
description: The number of dislikes the video has.
|
||||
duration:
|
||||
type: integer
|
||||
description: The video's duration in seconds.
|
||||
hls:
|
||||
type: string
|
||||
description: The stream of the video in a HLS manifest.
|
||||
lbryId:
|
||||
type: string
|
||||
description: The LBRY ID of the video.
|
||||
likes:
|
||||
type: integer
|
||||
description: The number of likes the video has.
|
||||
livestream:
|
||||
type: boolean
|
||||
description: Whether the video is a livestream.
|
||||
proxyUrl:
|
||||
type: string
|
||||
description: The base URL of the backend instance's proxy.
|
||||
subtitles:
|
||||
type: array
|
||||
items:
|
||||
$ref: "#/components/schemas/Subtitle"
|
||||
dash:
|
||||
type: string
|
||||
description: The URL of the DASH manifest.
|
||||
thumbnailUrl:
|
||||
type: string
|
||||
description: The URL of the video's thumbnail.
|
||||
title:
|
||||
type: string
|
||||
description: The video's title.
|
||||
uploadDate:
|
||||
type: string
|
||||
description: The date the video was uploaded.
|
||||
uploader:
|
||||
type: string
|
||||
description: The video's uploader.
|
||||
uploaderAvatar:
|
||||
type: string
|
||||
description: The URL of the video's uploader's avatar.
|
||||
uploaderUrl:
|
||||
type: string
|
||||
description: The relative URL of the video's uploader.
|
||||
uploaderVerified:
|
||||
type: boolean
|
||||
description: Whether the video's uploader is verified.
|
||||
relatedStreams:
|
||||
type: array
|
||||
items:
|
||||
$ref: "#/components/schemas/StreamItem"
|
||||
description: The related videos for the current video.
|
||||
ChannelInfo:
|
||||
type: object
|
||||
properties:
|
||||
|
@ -414,3 +471,18 @@ components:
|
|||
type: string
|
||||
description: The error message from the stacktrace.
|
||||
description: When a server-side exception takes place.
|
||||
Subtitle:
|
||||
type: object
|
||||
properties:
|
||||
autoGenerated:
|
||||
type: boolean
|
||||
description: Whether the subtitle is auto generated.
|
||||
code:
|
||||
type: string
|
||||
description: The language code of the subtitle.
|
||||
mimeType:
|
||||
type: string
|
||||
description: The mime type of the subtitle.
|
||||
url:
|
||||
type: string
|
||||
description: The URL of the subtitle.
|
||||
|
|
Loading…
Reference in a new issue