yandex_music.video¶
- class yandex_music.video.Video(title: str, cover: str | None = None, embed_url: str | None = None, provider: str | None = None, provider_video_id: str | int | None = None, youtube_url: str | None = None, thumbnail_url: str | None = None, duration: int | None = None, text: str | None = None, html_auto_play_video_player: str | None = None, regions: List[str] | None = None, client: Client | None = None)¶
Bases:
YandexMusicObject
Класс, представляющий видео.
- title¶
Название видео.
- Type:
str
- cover¶
Ссылка на изображение.
- Type:
str
, optional
- embed_url¶
Ссылка на видео.
- Type:
str
, optional
- provider¶
Провайдер видео.
- Type:
str
, optional
- provider_video_id¶
Идентификатор видео.
- Type:
int
|str
, optional
- youtube_url¶
Ссылка на видео Youtube.
- Type:
str
, optional
- thumbnail_url¶
Ссылка на изображение.
- Type:
str
, optional
- duration¶
Длительность видео в секундах.
- Type:
int
, optional
- text¶
Текст.
- Type:
str
, optional
- html_auto_play_video_player¶
HTML тег для встраивания в разметку страницы.
- Type:
str
, optional
- regions¶
Регион TODO.
- Type:
list
изstr
, optional
- client¶
Клиент Yandex Music.
- Type:
yandex_music.Client
, optional
- cover: str | None = None¶
- classmethod de_json(data: dict, client: Client) Video | None ¶
Десериализация объекта.
- Parameters:
data (
dict
) – Поля и значения десериализуемого объекта.client (
yandex_music.Client
) – Клиент Yandex Music.
- Returns:
Видео.
- Return type:
- classmethod de_list(data: list, client: Client) List[Video] ¶
Десериализация списка объектов.
- Parameters:
data (
list
) – Список словарей с полями и значениями десериализуемого объекта.client (
yandex_music.Client
) – Клиент Yandex Music.
- Returns:
Видео.
- Return type:
list
изyandex_music.Video
- duration: int | None = None¶
- embed_url: str | None = None¶
- html_auto_play_video_player: str | None = None¶
- provider: str | None = None¶
- provider_video_id: str | int | None = None¶
- regions: List[str] | None = None¶
- text: str | None = None¶
- thumbnail_url: str | None = None¶
- title: str¶
- youtube_url: str | None = None¶