feat: 支持按作者归档保存作品文件

BREAKING CHANGE: 新增配置文件参数:account_archive

Closes #226
Closes #229
This commit is contained in:
2025-03-12 22:01:01 +08:00
parent ea63059dbf
commit c2fa98bb51
9 changed files with 84 additions and 36 deletions

View File

@@ -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:

View File

@@ -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"