refactor(app): 将 account_archive 更新为 author_archive

This commit is contained in:
2025-03-21 20:54:57 +08:00
parent c43f3ad23e
commit f332b3fb2d
10 changed files with 30 additions and 19 deletions

View File

@@ -103,7 +103,7 @@ class XHS:
live_download=False,
folder_mode=False,
download_record=True,
account_archive=False,
author_archive=False,
language="zh_CN",
read_cookie: int | str = None,
_print: bool = True,
@@ -129,7 +129,7 @@ class XHS:
live_download,
download_record,
folder_mode,
account_archive,
author_archive,
_print,
)
self.html = Html(self.manager)

View File

@@ -63,7 +63,7 @@ class Download:
self.image_download = manager.image_download
self.video_download = manager.video_download
self.live_download = manager.live_download
self.account_archive = manager.account_archive
self.author_archive = manager.author_archive
async def run(
self,
@@ -110,7 +110,7 @@ class Download:
return path, tasks
def __generate_path(self, nickname:str, filename: str):
if self.account_archive:
if self.author_archive:
folder = self.folder.joinpath(nickname)
folder.mkdir(exist_ok=True)
else: