Removing ffprobe thingy that crashes the renderer

This commit is contained in:
2026-07-25 13:52:22 +02:00
parent a91acca695
commit 9f30698801
3 changed files with 81 additions and 16 deletions
+4 -1
View File
@@ -1489,7 +1489,10 @@ def _extract_outro_events(
)
if is_cached and cached_files is not None:
cached_files.add(video_id)
if video_path.exists():
# Prefer the import-time duration from videos.json; only probe when absent.
if video_source.duration is not None:
full_duration = video_source.duration
elif video_path.exists():
full_duration = get_video_duration(video_path)
else:
full_duration = 10.0 # Fallback