refactor(douyin): 三层兜底方案最终版(App Feed+TikHub+apizero),移除GoDownloader,清理硬编码Key
CI/CD Pipeline / Check if frontend-only change (push) Has been skipped
CI/CD Pipeline / Dedup Check - skip PR tests when covered by push pipeline (push) Successful in 1s
CI/CD Pipeline / Check push changed paths (push) Successful in 3s
CI/CD Pipeline / Frontend Lint (push) Has been skipped
CI/CD Pipeline / PR Build API Image (push) Has been skipped
CI/CD Pipeline / PR Build Web Image (push) Has been skipped
CI/CD Pipeline / PR Build Worker Image (push) Has been skipped
CI/CD Pipeline / Build Staging Web Image (push) Has been skipped
CI/CD Pipeline / Build Staging Worker Image (push) Successful in 35s
CI/CD Pipeline / Build Staging API Image (push) Successful in 41s
CI/CD Pipeline / Retag skipped Staging API Image (push) Has been skipped
CI/CD Pipeline / Retag skipped Staging Worker Image (push) Has been skipped
CI/CD Pipeline / Retag skipped Staging Web Image (push) Failing after 23s
CI/CD Pipeline / Frontend Unit Tests (push) Successful in 2m45s
CI/CD Pipeline / Deploy Staging (Watchtower auto-deploy) (push) Failing after 4m47s
CI/CD Pipeline / Staging E2E Tests (push) Has been skipped
CI/CD Pipeline / ACR Image Cleanup (push) Has been skipped
CI/CD Pipeline / Staging API Integration Tests (push) Has been skipped
CI/CD Pipeline / Validate - Style (push) Failing after 13m13s
CI/CD Pipeline / Integration Tests (push) Successful in 13m53s
CI/CD Pipeline / Validate - Python (mypy + alembic) (push) Successful in 16m1s
CI/CD Pipeline / Unit Tests (push) Successful in 18m59s
CI/CD Pipeline / Validate - Security (push) Successful in 38m11s
CI/CD Pipeline / Build Production API Image (push) Has been skipped
CI/CD Pipeline / Build Production Web Image (push) Has been skipped
CI/CD Pipeline / CI Gate (push) Has been skipped
CI/CD Pipeline / Build Production Worker Image (push) Has been skipped
CI/CD Pipeline / Deploy Production (push) Has been skipped
CI/CD Pipeline / Canary Release to Production (push) Has been skipped
CI/CD Pipeline / Production Browser E2E (push) Has been skipped

- 移除 P3 GoDownloader/RapidAPI(不再需要)
- douyin_resolver.py: P0 App Feed(免费) → P1 TikHub → P2 apizero
- API Key 全部从 os.environ 读取,无任何硬编码
- 清理 .env.example 中 RAPIDAPI_KEY 配置项
- scripts_ai.py docstring 更新
- 错误码分阶段(parse/asr/download)保留
- yt-dlp/cookies/ttwid 死代码已在前置提交删除
This commit is contained in:
xiaoxia
2026-09-17 21:51:08 +08:00
parent 73b9f7f97c
commit 43dfd6d425
3 changed files with 6 additions and 49 deletions
+1 -1
View File
@@ -3,7 +3,7 @@
三个 AI 工具接口(均挂载在 /api/v1/scripts 前缀下):
- POST /extract-from-douyin 从抖音视频提取文案
- 入口自动从分享文本中正则提取 http(s) URL,兼容 "复制链接" 粘贴场景
- 多源轮询解析(douyin_resolver):App Feed API → TikHub → apizero → GoDownloader
- 多源轮询解析(douyin_resolver):App Feed API → TikHub → apizero
- 拿到 MP4 直链后优先走火山 MediaKit ASR,失败回退下载+本地 ASR
- ASR 空结果时使用 Feed desc 兜底,图文视频直接返回 desc
- 所有源均失败时返回具体错误信息(不暴露内部细节)