fix(blocks): strip chapter metadata from audio files in add_audio block

Audio files (especially audiobooks, podcasts) can have chapter metadata
that causes MoviePy to crash with IndexError.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Nicholas Tindle
2026-02-04 21:58:04 -06:00
parent 4a84f34b31
commit 2deb9b96cf

View File

@@ -78,6 +78,7 @@ class AddAudioToVideoBlock(Block):
# 2) Load video + audio with moviepy
strip_chapters_inplace(video_abspath)
strip_chapters_inplace(audio_abspath)
video_clip = None
audio_clip = None
final_clip = None