fix downloader

This commit is contained in:
jxxghp
2024-07-02 11:11:25 +08:00
parent c8fe6e4284
commit 9484093d22
4 changed files with 50 additions and 46 deletions
+3 -3
View File
@@ -276,9 +276,9 @@ class DownloadChain(ChainBase):
download_dir=download_dir,
category=_media.category)
if result:
_hash, error_msg = result
_downloader, _hash, error_msg = result
else:
_hash, error_msg = None, "知错误"
_downloader, _hash, error_msg = None, None, "找到下载器"
if _hash:
# 下载文件路径
@@ -325,7 +325,7 @@ class DownloadChain(ChainBase):
continue
files_to_add.append({
"download_hash": _hash,
"downloader": settings.DEFAULT_DOWNLOADER,
"downloader": _downloader,
"fullpath": str(download_dir / _folder_name / file),
"savepath": str(download_dir / _folder_name),
"filepath": file,