This commit is contained in:
jxxghp 2023-08-08 09:23:18 +08:00
parent 5fcd7cb5ce
commit 83c9499489
2 changed files with 3 additions and 2 deletions

View File

@ -47,7 +47,7 @@ def add_downloading(
media_info=mediainfo,
torrent_info=torrentinfo
)
did = DownloadChain().download_single(context=context, userid=current_user.name)
did = DownloadChain().download_single(context=context)
return schemas.Response(success=True if did else False, data={
"download_id": did
})

View File

@ -167,7 +167,8 @@ class DownloadChain(ChainBase):
f"种子名称:{_meta.org_string}\n"
f"种子链接:{_torrent.enclosure}\n"
f"错误信息:{error_msg}",
image=_media.get_message_image()))
image=_media.get_message_image(),
userid=userid))
return _hash
def batch_download(self,