Module twitchpy.dataclasses.video
Classes
class Video (video_id: str,
stream_id: str,
channel: Channel,
title: str,
description: str,
created_at: datetime.datetime,
published_at: datetime.datetime,
url: str,
thumbnail_url: str,
viewable: str,
view_count: int,
language: str,
video_type: str,
duration: str,
muted_segments: list[tuple[int, int]])-
Expand source code
@dataclass class Video: """ Represents a video Attributes: video_id (str): ID of the video stream_id (str): The ID of the stream that the video originated from channel (Channel): The channel that owns the video title (str): Title of the video description (str): Description of the video created_at (datetime): Date of creation of the video published_at (datetime): Date of publication of the video url (str): URL of the video thumbnail_url (str): URL of the preview image of the video viewable (str): Indicates whether the video is publicly viewable view_count (int): Number of times the video has been viewed language (str): Language of the video type (str): Type of the video duration (str): Duration of the video muted_segments (list[tuple[int, int]]): The segments that Twitch Audio Recognition muted """ video_id: str stream_id: str channel: Channel title: str description: str created_at: datetime published_at: datetime url: str thumbnail_url: str viewable: str view_count: int language: str video_type: str duration: str muted_segments: list[tuple[int, int]]Represents a video
Attributes
video_id:str- ID of the video
stream_id:str- The ID of the stream that the video originated from
channel:Channel- The channel that owns the video
title:str- Title of the video
description:str- Description of the video
created_at:datetime- Date of creation of the video
published_at:datetime- Date of publication of the video
url:str- URL of the video
thumbnail_url:str- URL of the preview image of the video
viewable:str- Indicates whether the video is publicly viewable
view_count:int- Number of times the video has been viewed
language:str- Language of the video
type:str- Type of the video
duration:str- Duration of the video
muted_segments:list[tuple[int, int]]- The segments that Twitch Audio Recognition muted
Class variables
var channel : Channel-
The type of the None singleton.
var created_at : datetime.datetime-
The type of the None singleton.
var description : str-
The type of the None singleton.
var duration : str-
The type of the None singleton.
var language : str-
The type of the None singleton.
var muted_segments : list[tuple[int, int]]-
The type of the None singleton.
var published_at : datetime.datetime-
The type of the None singleton.
var stream_id : str-
The type of the None singleton.
var thumbnail_url : str-
The type of the None singleton.
var title : str-
The type of the None singleton.
var url : str-
The type of the None singleton.
var video_id : str-
The type of the None singleton.
var video_type : str-
The type of the None singleton.
var view_count : int-
The type of the None singleton.
var viewable : str-
The type of the None singleton.