压制完毕后,主动清除标记
This commit is contained in:
parent
981c0a443c
commit
75f36a0ca7
@ -51,9 +51,11 @@ def auto_submit_task():
|
|||||||
*[clip.full_path for clip in video_clip.danmaku_clips[1:]]
|
*[clip.full_path for clip in video_clip.danmaku_clips[1:]]
|
||||||
)
|
)
|
||||||
clear_item()
|
clear_item()
|
||||||
|
def _clear_encode_flag_callback(_f: "Future"):
|
||||||
|
IS_ENCODING.clear()
|
||||||
|
_future.add_done_callback(_clear_encode_flag_callback)
|
||||||
if VIDEO_ENABLED:
|
if VIDEO_ENABLED:
|
||||||
def _encode_finish_callback(_f: "Future"):
|
def _encode_finish_callback(_f: "Future"):
|
||||||
IS_ENCODING.clear()
|
|
||||||
_result = _f.result()
|
_result = _f.result()
|
||||||
if _result:
|
if _result:
|
||||||
# start uploading
|
# start uploading
|
||||||
|
Loading…
x
Reference in New Issue
Block a user