douyin-downloader/CLAUDE.md
jiji262 902ae36c5a sync: 从 desktop 项目拉取 author_dir 等 shared 改动
本次 commit 把 desktop 项目(jiji262/douyin-downloader-desktop)上积累的
shared 代码改动一次性同步过来,核心是作者目录命名可选 author_dir,其余
是此前历次 shared 修改的累积漂移。

主要内容:
- FileManager.get_save_path 新增 author_sec_uid / author_dir_style
  参数;新增 _compose_author_dir 私有方法
- config/default_config.py + config.example.yml 新增 author_dir 默认值
  和注释(nickname / sec_uid / nickname_uid)
- 三个 downloader(video/music/live)透传 config["author_dir"]
- 其余历史漂移(auth/core/storage/utils/tests 等)随同步一并纳入

验证:CLI pytest 261 passed(不计环境缺 hypothesis 的 3 个文件)。

Co-Authored-By: Craft Agent <agents-noreply@craft.do>
2026-05-12 11:05:20 +08:00

621 B

douyin-downloader Claude Guidance

Read AGENTS.md for the full project rules.

Shared Logic With Desktop

  • This project shares Python backend logic with /Users/crimson/codes/douyin/douyin-downloader-desktop.
  • When fixing shared logic in auth/, cli/, config/, control/, core/, storage/, tools/, utils/, or shared tests, apply the equivalent fix in both projects unless the difference is explicitly desktop-only or CLI-only.
  • Before finishing a shared-logic fix, compare the touched shared files against the sibling project and either keep them identical or document the intentional divergence.