From 789513a0be5746877f8b91c1adb50e4cd88adc9a Mon Sep 17 00:00:00 2001 From: Jerry Yan <792602257@qq.com> Date: Mon, 28 Apr 2025 16:32:34 +0800 Subject: [PATCH] =?UTF-8?q?=E9=81=BF=E5=85=8D=E5=8B=BF=E5=88=A0=E6=A8=A1?= =?UTF-8?q?=E6=9D=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- biz/ffmpeg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/biz/ffmpeg.py b/biz/ffmpeg.py index 246a382..0fdd6d6 100644 --- a/biz/ffmpeg.py +++ b/biz/ffmpeg.py @@ -132,7 +132,7 @@ def clear_task_tmp_file(ffmpeg_task): for task in ffmpeg_task.analyze_input_render_tasks(): clear_task_tmp_file(task) try: - if "template" not in ffmpeg_task.get_output_file(): + if os.getenv("TEMPLATE_DIR") not in ffmpeg_task.get_output_file(): os.remove(ffmpeg_task.get_output_file()) logger.info("delete tmp file: " + ffmpeg_task.get_output_file()) else: