Tweaks ton esure that

This commit is contained in:
2026-05-09 12:38:05 +02:00
parent d722272edc
commit e6a6968109
5 changed files with 173 additions and 64 deletions
+14 -7
View File
@@ -134,7 +134,18 @@ def _is_known_marker(
return True
# Video/narration triggers (all supported prefixes)
_VIDEO_PREFIXES = ("video:", "narration:", "vft:", "vfb:", "vst:", "vsb:", "vftp:", "vfbp:", "vstp:", "vsbp:")
_VIDEO_PREFIXES = (
"video:",
"narration:",
"vft:",
"vfb:",
"vst:",
"vsb:",
"vftp:",
"vfbp:",
"vstp:",
"vsbp:",
)
if any(marker_id.startswith(p) for p in _VIDEO_PREFIXES):
return True
@@ -923,9 +934,7 @@ def _extract_video_events(
f"Marker [video:{video_id}] — cutout '{video_source.cutout}' is not defined in project config. "
f"Available: {list(cutouts.keys())}"
)
video_markers.append(
(timing.timestamp, video_id, "video", None, None)
)
video_markers.append((timing.timestamp, video_id, "video", None, None))
continue
# --- [narration:xxx] ---
@@ -946,9 +955,7 @@ def _extract_video_events(
f"Marker [narration:{video_id}] — cutout '{video_source.cutout}' is not defined in project config. "
f"Available: {list(cutouts.keys())}"
)
video_markers.append(
(timing.timestamp, video_id, "narration", None, None)
)
video_markers.append((timing.timestamp, video_id, "narration", None, None))
events: list[VideoEvent] = []
for (