The only downloader you need. 下载器的集大成者。
TypeScript asyncasynciobittorentbtcross-platformdownload-managerdownloaderfluent-designftphttp3magnetpyqtpyside6pythonqtquicreactsoftwarestreaming
feat: 优化文件夹创建逻辑,确保输出文件夹存在
XiaoYouChR4f8ced490b97
diff --git a/features/bittorrent_pack/worker.py b/features/bittorrent_pack/worker.pyindex 4f6af045..32cc5427 100644--- a/features/bittorrent_pack/worker.py+++ b/features/bittorrent_pack/worker.py@@ -1,5 +1,6 @@import asynciofrom base64 import b64decode, b64encode+from pathlib import Pathfrom typing import Anyfrom urllib.parse import urlsplit@@ -285,7 +286,10 @@ class BTWorker(Worker):self.stage.setStatus(TaskStatus.FAILED)raise RuntimeError("至少需要选择一个文件")- self.task.path.mkdir(parents=True, exist_ok=True)+ target = Path(self.task.outputFolder)+ if not target.exists():+ target.parent.mkdir(parents=True, exist_ok=True)+ target.touch() if self.task.isSingleFile else target.mkdir()self._saveMagnetFile()self.session = createSession(