diff --git a/README_EN.md b/README_EN.md
index 95534ec..15cf903 100644
--- a/README_EN.md
+++ b/README_EN.md
@@ -34,9 +34,9 @@
📸 Program Screenshot
🎥 Click on the image to watch the demo video
-
+
-
+
🔗 Support Hyperlinks
https://www.xiaohongshu.com/explore/artwork's ID
@@ -71,7 +71,9 @@
- Extract artwork links from account-liked content
Script Screenshot
-
+
+
+
💻 Secondary Development
If there are other requirements, you can call or modify the program refer to the comments in main.py
@@ -207,7 +209,7 @@ async with XHS(work_path=work_path,
The output content is the Cookie
-
+
♥️ Support the Project
If XHS-Downloader is helpful, please consider giving it a Star ⭐, thank you for your support!
diff --git a/source/TUI/app.py b/source/TUI/app.py
index 9f6de43..cf52076 100644
--- a/source/TUI/app.py
+++ b/source/TUI/app.py
@@ -13,7 +13,6 @@ from source.translator import (
English,
)
from .index import Index
-from .loading import Loading
from .setting import Setting
__all__ = ["XHSDownloader"]
@@ -48,7 +47,6 @@ class XHSDownloader(App):
self.prompt),
name="setting")
self.install_screen(Index(self.APP, self.prompt), name="index")
- self.install_screen(Loading(), name="loading")
await self.push_screen("index")
async def action_settings(self):
@@ -62,12 +60,14 @@ class XHSDownloader(App):
await self.push_screen("index")
async def refresh_screen(self):
- await self.push_screen("loading")
- self.uninstall_screen("setting")
+ self.pop_screen()
self.__initialization()
+ self.uninstall_screen("setting")
self.install_screen(
Setting(
self.parameter,
self.prompt),
name="setting")
+ self.uninstall_screen("index")
+ self.install_screen(Index(self.APP, self.prompt), name="index")
await self.push_screen("index")
diff --git a/source/TUI/setting.py b/source/TUI/setting.py
index 1ee9b1a..a521140 100644
--- a/source/TUI/setting.py
+++ b/source/TUI/setting.py
@@ -83,7 +83,7 @@ class Setting(Screen):
yield Footer()
def on_mount(self) -> None:
- self.title = "程序设置"
+ self.title = self.prompt.settings_title
@on(Button.Pressed, "#save")
def save_settings(self):
diff --git a/source/translator/chinese.py b/source/translator/chinese.py
index 3afa94c..970d6d0 100644
--- a/source/translator/chinese.py
+++ b/source/translator/chinese.py
@@ -63,6 +63,7 @@ class Chinese:
cookie_placeholder: str = "内置 Cookie,建议自行设置"
proxy_placeholder: str = "无代理"
+ settings_title: str = "程序设置"
save_button: str = "保存配置"
abandon_button: str = "放弃更改"
diff --git a/source/translator/english.py b/source/translator/english.py
index cd31910..f30bb2e 100644
--- a/source/translator/english.py
+++ b/source/translator/english.py
@@ -60,7 +60,7 @@ class English(Chinese):
exit_program: str = "Exit the program"
check_updates: str = "Check for updates"
get_script: str = "Get the script"
- choose_language: str = "Select language"
+ settings: str = "Settings"
work_path: str = "Work path:"
folder_name: str = "Folder name:"
@@ -81,6 +81,7 @@ class English(Chinese):
cookie_placeholder: str = "built-in cookie, it is recommended to set it manually"
proxy_placeholder: str = "No proxy"
+ settings_title: str = "Settings"
save_button: str = "Save configuration"
abandon_button: str = "Discard changes"
diff --git a/static/screenshot/用户脚本截图1.png b/static/screenshot/用户脚本截图1.png
new file mode 100644
index 0000000..001f0bd
Binary files /dev/null and b/static/screenshot/用户脚本截图1.png differ
diff --git a/static/screenshot/用户脚本截图2.png b/static/screenshot/用户脚本截图2.png
new file mode 100644
index 0000000..13565c4
Binary files /dev/null and b/static/screenshot/用户脚本截图2.png differ
diff --git a/static/screenshot/程序运行截图CN1.png b/static/screenshot/程序运行截图CN1.png
new file mode 100644
index 0000000..32dc6df
Binary files /dev/null and b/static/screenshot/程序运行截图CN1.png differ
diff --git a/static/screenshot/程序运行截图CN2.png b/static/screenshot/程序运行截图CN2.png
new file mode 100644
index 0000000..1d91f2b
Binary files /dev/null and b/static/screenshot/程序运行截图CN2.png differ
diff --git a/static/screenshot/程序运行截图EN1.png b/static/screenshot/程序运行截图EN1.png
new file mode 100644
index 0000000..50c497d
Binary files /dev/null and b/static/screenshot/程序运行截图EN1.png differ
diff --git a/static/screenshot/程序运行截图EN2.png b/static/screenshot/程序运行截图EN2.png
new file mode 100644
index 0000000..5fc2efa
Binary files /dev/null and b/static/screenshot/程序运行截图EN2.png differ
diff --git a/static/获取Cookie示意图.png b/static/screenshot/获取Cookie示意图.png
similarity index 100%
rename from static/获取Cookie示意图.png
rename to static/screenshot/获取Cookie示意图.png
diff --git a/static/用户脚本截图.png b/static/用户脚本截图.png
deleted file mode 100644
index 3654c5e..0000000
Binary files a/static/用户脚本截图.png and /dev/null differ
diff --git a/static/程序运行截图1.png b/static/程序运行截图1.png
deleted file mode 100644
index 1095965..0000000
Binary files a/static/程序运行截图1.png and /dev/null differ
diff --git a/static/程序运行截图2.png b/static/程序运行截图2.png
deleted file mode 100644
index 7c0b0bc..0000000
Binary files a/static/程序运行截图2.png and /dev/null differ