mirror of
https://github.com/Xtao-Labs/iShotaBot.git
synced 2024-11-21 22:58:09 +00:00
🐛 Fix bili flv download
This commit is contained in:
parent
673852e25e
commit
bd62630a7f
@ -310,7 +310,7 @@ async def go_download(v: Video, p_num: int, m: Message, task: bool = True):
|
|||||||
# FLV 流下载
|
# FLV 流下载
|
||||||
await download_url(streams[0].url, flv_temp_path, m, "视频 FLV ")
|
await download_url(streams[0].url, flv_temp_path, m, "视频 FLV ")
|
||||||
# 转换文件格式
|
# 转换文件格式
|
||||||
_, result = await execute(f"{FFMPEG_PATH} -i {flv_temp_path} {video_path}")
|
_, result = await execute(f'{FFMPEG_PATH} -i "{flv_temp_path}" "{video_path}"')
|
||||||
else:
|
else:
|
||||||
if len(streams) < 2:
|
if len(streams) < 2:
|
||||||
raise BilibiliDownloaderError("获取下载链接异常")
|
raise BilibiliDownloaderError("获取下载链接异常")
|
||||||
|
Loading…
Reference in New Issue
Block a user