From 844ee089d838a2df6ffce0b0095bf283199e497a Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Sat, 22 Feb 2025 08:04:09 -0700 Subject: [PATCH] Fix preview fetch (#16741) --- frigate/record/export.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/frigate/record/export.py b/frigate/record/export.py index f05fae6aa..0e64021b4 100644 --- a/frigate/record/export.py +++ b/frigate/record/export.py @@ -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,