| 1 | link: |
| 2 | - https://www.douyin.com/user/MS4wLjABAAAA6O7EZyfDRYXxJrUTpf91K3tmB4rBROkAw-nYMfld8ss |
| 3 | |
| 4 | path: ./Downloaded/ |
| 5 | |
| 6 | music: true |
| 7 | cover: true |
| 8 | avatar: true |
| 9 | json: true |
| 10 | |
| 11 | start_time: "" |
| 12 | end_time: "" |
| 13 | |
| 14 | folderstyle: true |
| 15 | |
| 16 | # 文件/目录命名模板。可用变量: |
| 17 | # {id} {title} {author} {author_id} {date} {year} {month} {day} |
| 18 | # {time} {timestamp} {type} {mode} |
| 19 | # 要求模板中至少包含 {id} 以避免重名覆盖。 |
| 20 | filename_template: "{date}_{title}_{id}" |
| 21 | folder_template: "{date}_{title}_{id}" |
| 22 | |
| 23 | # 作者目录层命名方式。可选值: |
| 24 | # nickname - 仅作者昵称(默认,最直观,但重名会合并、改名会分裂) |
| 25 | # sec_uid - 作者 sec_uid(稳定唯一,但不直观) |
| 26 | # nickname_uid - 昵称_sec_uid(直观 + 唯一,推荐重度用户) |
| 27 | # 切换只影响后续下载,不会迁移已存在的目录。 |
| 28 | author_dir: "nickname" |
| 29 | |
| 30 | # 默认不下载作者主页置顶作品;如需包含置顶,改为 true |
| 31 | download_pinned: false |
| 32 | |
| 33 | mode: |
| 34 | - post |
| 35 | |
| 36 | number: |
| 37 | post: 1 |
| 38 | like: 0 |
| 39 | allmix: 0 |
| 40 | mix: 0 |
| 41 | music: 0 |
| 42 | collect: 0 |
| 43 | collectmix: 0 |
| 44 | |
| 45 | increase: |
| 46 | post: false |
| 47 | like: false |
| 48 | allmix: false |
| 49 | mix: false |
| 50 | music: false |
| 51 | |
| 52 | thread: 5 |
| 53 | retry_times: 3 |
| 54 | proxy: "" |
| 55 | database: true |
| 56 | database_path: dy_downloader.db |
| 57 | |
| 58 | progress: |
| 59 | quiet_logs: true |
| 60 | |
| 61 | transcript: |
| 62 | enabled: false |
| 63 | model: gpt-4o-mini-transcribe |
| 64 | output_dir: "" |
| 65 | response_formats: |
| 66 | - txt |
| 67 | - json |
| 68 | api_url: https://api.openai.com/v1/audio/transcriptions |
| 69 | api_key_env: OPENAI_API_KEY |
| 70 | api_key: "" |
| 71 | |
| 72 | browser_fallback: |
| 73 | enabled: true |
| 74 | headless: false |
| 75 | max_scrolls: 240 |
| 76 | idle_rounds: 8 |
| 77 | wait_timeout_seconds: 600 |
| 78 | |
| 79 | # 评论采集(可选):启用后每个作品会额外生成 *_comments.json |
| 80 | comments: |
| 81 | enabled: false |
| 82 | include_replies: false |
| 83 | max_comments: 0 # 0 = 不限 |
| 84 | page_size: 20 |
| 85 | |
| 86 | # 直播录制(可选):当 link 指向 live.douyin.com/{room_id} 或 /follow/live/{room_id} 时生效 |
| 87 | live: |
| 88 | max_duration_seconds: 0 # 0 = 录到主播下播 |
| 89 | chunk_size: 65536 |
| 90 | idle_timeout_seconds: 30 |
| 91 | |
| 92 | # 下载完成通知(可选)。providers 支持 bark / telegram / webhook |
| 93 | notifications: |
| 94 | enabled: false |
| 95 | on_success: true |
| 96 | on_failure: true |
| 97 | providers: [] |
| 98 | # 示例: |
| 99 | # providers: |
| 100 | # - type: bark |
| 101 | # url: https://api.day.app/YOUR_DEVICE_KEY |
| 102 | # sound: bell |
| 103 | # - type: telegram |
| 104 | # bot_token: "123456:ABC..." |
| 105 | # chat_id: "987654321" |
| 106 | # - type: webhook |
| 107 | # url: https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=xxx |
| 108 | # extra_body: |
| 109 | # msgtype: text |
| 110 | |
| 111 | # REST API 服务模式(可选,需额外安装 fastapi + uvicorn) |
| 112 | server: |
| 113 | max_jobs: 500 |
| 114 | job_ttl_seconds: 86400 # 完成态 job 保留 24 小时 |
| 115 | |
| 116 | cookies: |
| 117 | msToken: YOUR_MS_TOKEN |
| 118 | ttwid: YOUR_TTWID |
| 119 | odin_tt: YOUR_ODIN_TT |
| 120 | passport_csrf_token: YOUR_CSRF_TOKEN |
| 121 | sid_guard: YOUR_SID_GUARD |
| 122 |