Skip to content

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

fix(android): 做种和共享可以暂停

XiaoYouChR32373574bc60
diff --git a/features/bittorrent_pack/android.py b/features/bittorrent_pack/android.py
index 58205f56..e46a1fcc 100644
--- a/features/bittorrent_pack/android.py
+++ b/features/bittorrent_pack/android.py
@@ -19,8 +19,6 @@ def taskFields(task) -> dict:
"progressMode": "hidden" if task.isSeeding else "determinate",
"statusText": STATE_TEXT.get(task.stateText, ""),
"secondarySpeed": task.uploadRate,
- "canStop": task.isSeeding,
- "canPause": not task.isSeeding,
"packFields": {
"peers": {"active": task.peerCount, "total": task.totalPeerCount},
"shareRatio": task.shareRatioPercent,
diff --git a/features/ed2k_pack/android.py b/features/ed2k_pack/android.py
index 4280c01b..d500e83c 100644
--- a/features/ed2k_pack/android.py
+++ b/features/ed2k_pack/android.py
@@ -10,7 +10,6 @@ def taskFields(task) -> dict:
"progressMode": "hidden" if task.isSharing else "determinate",
"statusText": N("TaskState", "共享中") if task.isSharing else "",
"secondarySpeed": task.uploadRate,
- "canPause": not task.isSharing,
"packFields": {
"peers": None if active is None else {
"active": active, "total": max(active, task.totalPeerCount),
diff --git a/features/m3u8_pack/android.py b/features/m3u8_pack/android.py
index 7f4bb72d..a85def03 100644
--- a/features/m3u8_pack/android.py
+++ b/features/m3u8_pack/android.py
@@ -49,7 +49,6 @@ def taskFields(task) -> dict:
"statusText": (N("TaskState", "等待中") if waiting else N("TaskState", "录制中"))
if isRunning else "",
"canStop": isRunning and step is not None,
- "canPause": False,
"packFields": {
"liveElapsed": step.liveElapsed if step else "",
"recordLimit": step.recordLimit if step else "",