修复模板索引值传递问题

This commit is contained in:
puke
2025-11-27 17:13:22 +08:00
parent 5423b77ae8
commit 3fd4696137
3 changed files with 16 additions and 14 deletions

View File

@@ -293,15 +293,9 @@ class FrameProcessor:
content_metadata = storyboard.content_metadata if storyboard else None
# Build ext data
ext = {}
if content_metadata:
ext["content_title"] = content_metadata.title or ""
ext["content_author"] = content_metadata.author or ""
ext["content_subtitle"] = content_metadata.subtitle or ""
ext["content_genre"] = content_metadata.genre or ""
# Add frame index (1-based)
ext["index"] = frame.index + 1
ext = {
"index": frame.index + 1,
}
# Add custom template parameters
if config.template_params: