压制完毕后,主动清除标记

This commit is contained in:
Jerry Yan 2022-11-25 17:44:19 +08:00
parent 981c0a443c
commit 75f36a0ca7

View File

@ -51,9 +51,11 @@ def auto_submit_task():
*[clip.full_path for clip in video_clip.danmaku_clips[1:]]
)
clear_item()
def _clear_encode_flag_callback(_f: "Future"):
IS_ENCODING.clear()
_future.add_done_callback(_clear_encode_flag_callback)
if VIDEO_ENABLED:
def _encode_finish_callback(_f: "Future"):
IS_ENCODING.clear()
_result = _f.result()
if _result:
# start uploading