Skip to content

Commit ca96aba

Browse files
committed
fix: handle dry run with missing tool path
1 parent d1ae6c8 commit ca96aba

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/ffmpeg_progress_yield/ffmpeg_progress_yield.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@ def __init__(
6060

6161
self.current_input_idx: int = 0
6262
self.total_dur: Union[None, int] = None
63-
if FfmpegProgress._uses_error_loglevel(self.cmd):
63+
# Skip probing duration in dry-run mode to avoid running ffprobe
64+
if not self.dry_run and FfmpegProgress._uses_error_loglevel(self.cmd):
6465
self.total_dur = self._probe_duration(self.cmd)
6566

6667
# Set up cleanup on garbage collection as a fallback

0 commit comments

Comments
 (0)