避免勿删模板

This commit is contained in:
Jerry Yan 2025-04-28 16:32:34 +08:00
parent b3911839f3
commit 789513a0be

View File

@ -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: