fix bug
This commit is contained in:
parent
5fcd7cb5ce
commit
83c9499489
@ -47,7 +47,7 @@ def add_downloading(
|
|||||||
media_info=mediainfo,
|
media_info=mediainfo,
|
||||||
torrent_info=torrentinfo
|
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={
|
return schemas.Response(success=True if did else False, data={
|
||||||
"download_id": did
|
"download_id": did
|
||||||
})
|
})
|
||||||
|
@ -167,7 +167,8 @@ class DownloadChain(ChainBase):
|
|||||||
f"种子名称:{_meta.org_string}\n"
|
f"种子名称:{_meta.org_string}\n"
|
||||||
f"种子链接:{_torrent.enclosure}\n"
|
f"种子链接:{_torrent.enclosure}\n"
|
||||||
f"错误信息:{error_msg}",
|
f"错误信息:{error_msg}",
|
||||||
image=_media.get_message_image()))
|
image=_media.get_message_image(),
|
||||||
|
userid=userid))
|
||||||
return _hash
|
return _hash
|
||||||
|
|
||||||
def batch_download(self,
|
def batch_download(self,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user