mirror of
https://github.com/Xtao-Labs/iShotaBot.git
synced 2024-11-21 22:58:09 +00:00
fix: bilibili download
This commit is contained in:
parent
d4109d32ed
commit
8c84d4fdb5
@ -147,6 +147,8 @@ async def download_url(url: str, out: str, m: Message, start: str):
|
||||
async with sess.stream("GET", url) as resp:
|
||||
logger.info(f"Downloading {start}")
|
||||
resp: Response
|
||||
if resp.status_code != 200:
|
||||
raise BilibiliDownloaderError("下载链接异常,请尝试重新下载")
|
||||
length = resp.headers.get("content-length")
|
||||
if not length:
|
||||
raise FileNoSize
|
||||
|
@ -1,6 +1,6 @@
|
||||
pyrogram==2.0.106
|
||||
tgcrypto==1.2.5
|
||||
bilibili-api-python==15.5.4
|
||||
bilibili-api-python==16.2.1
|
||||
httpx
|
||||
pillow
|
||||
cashews
|
||||
|
Loading…
Reference in New Issue
Block a user