Fix preview fetch (#16741)

This commit is contained in:
Nicolas Mowen 2025-02-22 08:04:09 -07:00 committed by GitHub
parent b3c1b21f80
commit 844ee089d8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -363,10 +363,13 @@ class RecordingExporter(threading.Thread):
}
).execute()
if self.playback_source == PlaybackSourceEnum.recordings:
ffmpeg_cmd, playlist_lines = self.get_record_export_command(video_path)
else:
ffmpeg_cmd, playlist_lines = self.get_preview_export_command(video_path)
try:
if self.playback_source == PlaybackSourceEnum.recordings:
ffmpeg_cmd, playlist_lines = self.get_record_export_command(video_path)
else:
ffmpeg_cmd, playlist_lines = self.get_preview_export_command(video_path)
except DoesNotExist:
return
p = sp.run(
ffmpeg_cmd,