Skip to content

The only downloader you need. 下载器的集大成者。

fix(download): 修复下载完成时进度条显示和连接池配置

XiaoYouChR433caff58150
diff --git a/app/view/components/cards.py b/app/view/components/cards.py
index 7785f4ef..6b6e1cc0 100644
--- a/app/view/components/cards.py
+++ b/app/view/components/cards.py
@@ -327,7 +327,7 @@ class UniversalTaskCard(TaskCard):
elif self.task.status == TaskStatus.COMPLETED:
if self.task.fileSize > 0:
self.progressBar.setError(False)
- self.progressBar.setValue(100)
+ self.progressBar.hide()
else:
self.progressBar.stop()
self.showStatusInfo(self.tr("任务已经完成"))
diff --git a/features/http_pack/task.py b/features/http_pack/task.py
index c882dddb..2991c967 100644
--- a/features/http_pack/task.py
+++ b/features/http_pack/task.py
@@ -375,7 +375,7 @@ class HttpWorker(Worker):
# prepare async components
self.taskGroup = TaskGroup()
self.subworkers: list[HttpSubworker] = []
- self.client = niquests.AsyncSession(happy_eyeballs=True)
+ self.client = niquests.AsyncSession(happy_eyeballs=True, pool_maxsize=256)
self.client.trust_env = False
shouldCleanupRecordFile = False