我以这种方式下载视频:
try:
name = random_string(10)
ydl = youtube_dl.YoutubeDL(
{'outtmpl': name, 'progress_hooks': [hook_func]})
print('Start downloading')
with ydl:
await loop.run_in_executor(None, ydl.download,
[url]
)
except Exception as e:
print("Error ", e)
我想将传入的字节重定向到并行工作的另一个函数(该函数将视频上传到Telegram),该怎么办?