def __init__(self, view: View, info: Dict[str, Any], api: TwitchAPI, quality: str, temp_dir: str = '.') -> None:
if not TwitchVideo._schema:
with open('video_info.schema') as json_data:
TwitchVideo._schema = json.load(json_data)
self._validate_info(info)
self.info = info
self.api = api
self.quality = quality
self.temp_dir = temp_dir
self.view = view
self.download_done: bool = False
self.file: Optional[IO[bytes]] = None
评论列表
文章目录