️ Rewrite download manager

This commit is contained in:
zhbaor 2023-03-04 13:53:05 +08:00
parent e47a92b77e
commit afc9c112cb
4 changed files with 68 additions and 53 deletions

View file

@ -1,8 +1,13 @@
from .exceptions import *
from bilibili_api import video, sync, HEADERS
from bilibili_api import video, sync
from httpx import stream
from os import PathLike
HEADERS = {
"User-Agent": "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/110.0",
"Referer": "https://www.bilibili.com",
}
class Video:
def __init__(self, video_number: str):