storage.py 文件源码

python
阅读 27 收藏 0 点赞 0 评论 0

项目:twlived 作者: tausackhn 项目源码 文件源码
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
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号