From 1fd661744138347193e1684b35ee043f3f8b1302 Mon Sep 17 00:00:00 2001 From: unknown Date: Sun, 28 Dec 2025 20:20:00 -0800 Subject: [PATCH] ... --- lib/core.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/core.py b/lib/core.py index b95d2ccf..96a3bd0b 100644 --- a/lib/core.py +++ b/lib/core.py @@ -1825,7 +1825,7 @@ def combine_audio_chapters(id:str)->list[str]|None: '-of', 'json', filepath ] - result = subprocess.run(ffprobe_cmd, capture_output=True, text=True) + result = subprocess.run(ffprobe_cmd, env=env, capture_output=True, text=True) try: return float(json.loads(result.stdout)['format']['duration']) except Exception: @@ -1912,7 +1912,7 @@ def combine_audio_chapters(id:str)->list[str]|None: '-show_entries', 'stream=codec_name,sample_rate,sample_fmt', '-of', 'default=nokey=1:noprint_wrappers=1', ffmpeg_combined_audio ] - probe = subprocess.run(ffprobe_cmd, capture_output=True, text=True) + probe = subprocess.run(ffprobe_cmd, env=env, capture_output=True, text=True) codec_info = probe.stdout.strip().splitlines() input_codec = codec_info[0] if len(codec_info) > 0 else None input_rate = codec_info[1] if len(codec_info) > 1 else None @@ -2139,7 +2139,7 @@ def assemble_chunks(txt_file:str, out_file:str, is_gui_process:bool)->bool: [shutil.which("ffprobe"), "-v", "error", "-show_entries", "format=duration", "-of", "default=noprint_wrappers=1:nokey=1", file_path], - capture_output=True, text=True + env=env, capture_output=True, text=True ) try: total_duration += float(result.stdout.strip())