避免勿删模板
This commit is contained in:
parent
b3911839f3
commit
789513a0be
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user