mirror of
https://github.com/JoeanAmier/XHS-Downloader.git
synced 2026-03-22 06:57:16 +08:00
refactor(app): 将 account_archive 更新为 author_archive
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user