The only downloader you need. 下载器的集大成者。
TypeScript asyncasynciobittorentbtcross-platformdownload-managerdownloaderfluent-designftphttp3magnetpyqtpyside6pythonqtquicreactsoftwarestreaming
fix(http): 进度条读 stages[0] 兼容基类任务
XiaoYouChRec122ec1c6b7
diff --git a/features/http_pack/cards.py b/features/http_pack/cards.pyindex b06c68b4..de6bd013 100644--- a/features/http_pack/cards.py+++ b/features/http_pack/cards.py@@ -111,6 +111,7 @@ class HttpTaskCard(UniversalTaskCard):"""HTTP 任务卡片: 已知大小且支持续传时用分段进度条, 否则退回通用进度条"""def createProgressBar(self) -> QWidget:- if self.task.fileSize > 0 and self.task.stage.supportsRange:- return SegmentedProgressBar(self.task.stage, self)+ stage = self.task.stages[0]+ if isinstance(stage, HttpTaskStage) and self.task.fileSize > 0 and stage.supportsRange:+ return SegmentedProgressBar(stage, self)return super().createProgressBar()