Skip to content

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

feat(arxiv): 论文任务不再提供更换链接

XiaoYouChR2dbeaae9473d
diff --git a/features/arxiv_pack/android.py b/features/arxiv_pack/android.py
index 151da6f9..521da8e6 100644
--- a/features/arxiv_pack/android.py
+++ b/features/arxiv_pack/android.py
@@ -5,6 +5,7 @@ UI_CLASS = "com.xychr.ghostdownloader.features.arxiv_pack.ArxivUi"
def editFields(task) -> dict:
fields = {**editHttpFields(task), "isBibtexEnabled": task.isBibtexEnabled}
+ del fields["url"]
if task.hasSource:
fields["isSourceEnabled"] = task.isSourceEnabled
return fields
diff --git a/features/arxiv_pack/manifest.toml b/features/arxiv_pack/manifest.toml
index cec95a9e..18ecbe82 100644
--- a/features/arxiv_pack/manifest.toml
+++ b/features/arxiv_pack/manifest.toml
@@ -2,5 +2,5 @@
entry = "pack.py"
class = "ArxivPack"
dependencies = ["http_pack"]
-version = "1.0.1"
+version = "1.0.2"
gdMinVersion = "4.4.7"
diff --git a/features/arxiv_pack/pack.py b/features/arxiv_pack/pack.py
index 5361249d..4445c9ed 100644
--- a/features/arxiv_pack/pack.py
+++ b/features/arxiv_pack/pack.py
@@ -148,10 +148,5 @@ class ArxivPack(FeaturePack):
return HttpPack.optionCards(self, task, parent)
def editCards(self, task, parent=None):
- from app.view.components.option_cards import UrlEditCard
from .cards import SideFileCard
- return [
- UrlEditCard(parent, initial=task.url),
- *self.optionCards(task, parent),
- SideFileCard(parent, task=task),
- ]
+ return [*self.optionCards(task, parent), SideFileCard(parent, task=task)]