The only downloader you need. 下载器的集大成者。
TypeScript asyncasynciobittorentbtcross-platformdownload-managerdownloaderfluent-designftphttp3magnetpyqtpyside6pythonqtquicreactsoftwarestreaming
fix(bittorrent): 任务名不再追加 stateText,中间态改用 statusLabel 显示
XiaoYouChRdc7e51bbde58
diff --git a/features/bittorrent_pack/cards.py b/features/bittorrent_pack/cards.pyindex e37ca355..6767d623 100644--- a/features/bittorrent_pack/cards.py+++ b/features/bittorrent_pack/cards.py@@ -39,12 +39,6 @@ BT_ETA_FIELD = FieldSpec("eta", FluentIcon.STOP_WATCH, {TaskStatus.RUNNING: toBtBT_SIZE_FIELD = FieldSpec("size", FluentIcon.LIBRARY, {None: toBtSizeText})-def toBtNameText(task: BTTask, speed: int, received: int) -> str | None:- if not task.isSeeding and task.stateText:- return f"{task.name} ({task.stateText})"- return None--class BTDraftCard(MultiFileDraftCard):@property@@ -71,7 +65,6 @@ class BTTaskCard(MultiFileTaskCard):uploadLabel: IconBodyLabelfileSelectDialog = TorrentFileSelectDialoginfoFields = [BT_SPEED_FIELD, BT_UPLOAD_FIELD, BT_ETA_FIELD, BT_SIZE_FIELD]- nameFormats = {TaskStatus.RUNNING: toBtNameText}def _refreshForStatus(self, task):super()._refreshForStatus(task)@@ -85,6 +78,9 @@ class BTTaskCard(MultiFileTaskCard):if task.peerCount > 0:parts.append(self.tr("{0} peers").format(task.peerCount))self._setStatus(self.tr("做种中") + " " + " · ".join(parts))+ elif task.status == TaskStatus.RUNNING and task.stateText and task.stateText != "下载中":+ self.progressBar.hide()+ self._setStatus(task.stateText)elif task.status != TaskStatus.RUNNING:parts = []if task.stateText and task.stateText not in (