mirror of
https://github.com/JoeanAmier/XHS-Downloader.git
synced 2026-03-22 06:57:16 +08:00
feat: 支持按作者归档保存作品文件
BREAKING CHANGE: 新增配置文件参数:account_archive Closes #226 Closes #229
This commit is contained in:
@@ -65,6 +65,7 @@ class Manager:
|
||||
live_download: bool,
|
||||
download_record: bool,
|
||||
folder_mode: bool,
|
||||
account_archive:bool,
|
||||
_print: bool,
|
||||
):
|
||||
self.root = root
|
||||
@@ -115,6 +116,7 @@ class Manager:
|
||||
self.image_download = self.check_bool(image_download, True)
|
||||
self.video_download = self.check_bool(video_download, True)
|
||||
self.live_download = self.check_bool(live_download, True)
|
||||
self.account_archive = self.check_bool(account_archive, False)
|
||||
|
||||
def __check_path(self, path: str) -> Path:
|
||||
if not path:
|
||||
|
||||
@@ -27,6 +27,7 @@ class Settings:
|
||||
"live_download": False,
|
||||
"folder_mode": False,
|
||||
"download_record": True,
|
||||
"account_archive": False,
|
||||
"language": "zh_CN",
|
||||
}
|
||||
encode = "UTF-8-SIG" if system() == "Windows" else "UTF-8"
|
||||
|
||||
Reference in New Issue
Block a user