Add properties for VideoItem.

This commit is contained in:
FireMasterK 2022-02-07 13:23:13 +00:00
parent 2776a3d304
commit a903ff779f
No known key found for this signature in database
GPG key ID: 49451E4482CC5BCD

View file

@ -285,10 +285,67 @@ components:
type: array type: array
items: items:
$ref: "#/components/schemas/Stream" $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: relatedStreams:
type: array type: array
items: items:
$ref: "#/components/schemas/StreamItem" $ref: "#/components/schemas/StreamItem"
description: The related videos for the current video.
ChannelInfo: ChannelInfo:
type: object type: object
properties: properties:
@ -414,3 +471,18 @@ components:
type: string type: string
description: The error message from the stacktrace. description: The error message from the stacktrace.
description: When a server-side exception takes place. 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.