The only downloader you need. 下载器的集大成者。
TypeScript asyncasynciobittorentbtcross-platformdownload-managerdownloaderfluent-designftphttp3magnetpyqtpyside6pythonqtquicreactsoftwarestreaming
优化获取文件名逻辑
XiaoYouChR5e1a50c7fa64
diff --git a/app/common/download_task.py b/app/common/download_task.pyindex 2f35070e..c0cad1a7 100644--- a/app/common/download_task.py+++ b/app/common/download_task.py@@ -127,6 +127,10 @@ class DownloadTask(QThread):elif fileName.startswith("'") and fileName.endswith("'"):fileName = fileName[1:-1]logger.debug(f"方法2获取文件名成功, 文件名:{fileName}")++ if not fileName:+ raise KeyError+except (KeyError, IndexError) as e:# 处理没有文件名的情况logger.info(f"方法2获取文件名失败, KeyError or IndexError:{e}")