Tweaks ton esure that
This commit is contained in:
+14
-7
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user