Skip to content

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

refactor(android): MD3 合规与 Draft 交互重设计

XiaoYouChR1d124ccc41d4
diff --git a/features/bili_pack/android.py b/features/bili_pack/android.py
index d092689c..85372a0b 100644
--- a/features/bili_pack/android.py
+++ b/features/bili_pack/android.py
@@ -3,7 +3,7 @@ from __future__ import annotations
import json
-UI_CLASS = "com.xychr.ghostdownloader.packs.BilibiliUi"
+UI_CLASS = "com.xychr.ghostdownloader.features.bili_pack.BilibiliUi"
_account = None
_qr: dict = {}
diff --git a/features/bittorrent_pack/android.py b/features/bittorrent_pack/android.py
index ccdf5bb7..81bb4687 100644
--- a/features/bittorrent_pack/android.py
+++ b/features/bittorrent_pack/android.py
@@ -1,7 +1,7 @@
"""Android View adapter for BittorrentPack."""
from app.i18n import N
-UI_CLASS = "com.xychr.ghostdownloader.packs.BitTorrentUi"
+UI_CLASS = "com.xychr.ghostdownloader.features.bittorrent_pack.BitTorrentUi"
STATE_TEXT = {
"checking_files": N("TaskState", "校验已有文件"),
diff --git a/features/ed2k_pack/android.py b/features/ed2k_pack/android.py
index 618bd5e1..4280c01b 100644
--- a/features/ed2k_pack/android.py
+++ b/features/ed2k_pack/android.py
@@ -1,7 +1,7 @@
"""Android View adapter for ED2kPack."""
from app.i18n import N
-UI_CLASS = "com.xychr.ghostdownloader.packs.Ed2kUi"
+UI_CLASS = "com.xychr.ghostdownloader.features.ed2k_pack.Ed2kUi"
def taskFields(task) -> dict:
diff --git a/features/github_pack/android.py b/features/github_pack/android.py
index d3dbac8a..e3628651 100644
--- a/features/github_pack/android.py
+++ b/features/github_pack/android.py
@@ -1,3 +1,3 @@
from http_pack.android import editFields
-UI_CLASS = "com.xychr.ghostdownloader.packs.GitHubUi"
+UI_CLASS = "com.xychr.ghostdownloader.features.github_pack.GitHubUi"
diff --git a/features/huggingface_pack/android.py b/features/huggingface_pack/android.py
index 3c5eeab6..26d66005 100644
--- a/features/huggingface_pack/android.py
+++ b/features/huggingface_pack/android.py
@@ -1 +1 @@
-UI_CLASS = "com.xychr.ghostdownloader.packs.HuggingFaceUi"
+UI_CLASS = "com.xychr.ghostdownloader.features.huggingface_pack.HuggingFaceUi"
diff --git a/features/m3u8_pack/android.py b/features/m3u8_pack/android.py
index 5a8f7e11..556e3578 100644
--- a/features/m3u8_pack/android.py
+++ b/features/m3u8_pack/android.py
@@ -2,7 +2,7 @@
from app.models.task import TaskStatus
-UI_CLASS = "com.xychr.ghostdownloader.packs.M3u8Ui"
+UI_CLASS = "com.xychr.ghostdownloader.features.m3u8_pack.M3u8Ui"
def editFields(task) -> dict:
diff --git a/features/yt_dlp_pack/android.py b/features/yt_dlp_pack/android.py
index 3333df71..6495e92b 100644
--- a/features/yt_dlp_pack/android.py
+++ b/features/yt_dlp_pack/android.py
@@ -6,7 +6,7 @@ from pathlib import Path
from .choices import buildAudioLanguageChoices, buildAudioTiers, buildSubtitleChoices, buildVideoTiers
from .task import YouTubeFile, buildFormatPair, probeFormats, probePlaylist
-UI_CLASS = "com.xychr.ghostdownloader.packs.YtDlpUi"
+UI_CLASS = "com.xychr.ghostdownloader.features.yt_dlp_pack.YtDlpUi"
def draftFields(task) -> dict: