Skip to content

fix: WAV 缓存 404 不再导致整次生成失败 - #3

Merged
genz27 merged 1 commit into
mainfrom
feat/soft-fail-optional-media-cache
Jul 30, 2026
Merged

genz27 merged 1 commit into
mainfrom
feat/soft-fail-optional-media-cache

Conversation

@genz27

@genz27 genz27 commented Jul 30, 2026

Copy link
Copy Markdown
Owner

Summary

  • 主音频(mp3/m4a)缓存失败仍返回错误
  • WAV / 封面 / 视频缓存失败时 soft-fail,回退上游原链接
  • 避免 FlowMusic 提前给出尚未就绪的 wav_url 导致 cache wav: download media: HTTP 404

Test plan

  • go test ./internal/service/ ./internal/httpapi/ ./internal/storage/
  • 新增 TestGenerateSoftFailsOptionalWavCache404

FlowMusic 常在 wav 对象尚未就绪时就返回 wav_url,缓存下载 HTTP 404 不应导致整次生成失败。主音频缓存仍为硬失败。
@genz27
genz27 merged commit 34296d8 into main Jul 30, 2026
2 checks passed
@genz27
genz27 deleted the feat/soft-fail-optional-media-cache branch July 30, 2026 03:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant