~
This commit is contained in:
parent
cdf46458be
commit
7e4b8cd601
@ -25,16 +25,18 @@ def auto_submit_task():
|
||||
global bili_record_workflow_item
|
||||
if bili_record_workflow_item is None:
|
||||
return
|
||||
if not bili_record_workflow_item.editing:
|
||||
if len(bili_record_workflow_item.video_clips) > 0:
|
||||
for video_clip in bili_record_workflow_item.video_clips:
|
||||
if len(video_clip.danmaku_clips) > 0:
|
||||
threading.Thread(target=do_workflow, args=(
|
||||
video_clip.full_path,
|
||||
video_clip.danmaku_clips[0].full_path,
|
||||
*[clip.full_path for clip in video_clip.danmaku_clips[1:]]
|
||||
)).start()
|
||||
clear_item()
|
||||
if bili_record_workflow_item.editing:
|
||||
return
|
||||
if len(bili_record_workflow_item.video_clips) == 0:
|
||||
return
|
||||
for video_clip in bili_record_workflow_item.video_clips:
|
||||
if len(video_clip.danmaku_clips) > 0:
|
||||
threading.Thread(target=do_workflow, args=(
|
||||
video_clip.full_path,
|
||||
video_clip.danmaku_clips[0].full_path,
|
||||
*[clip.full_path for clip in video_clip.danmaku_clips[1:]]
|
||||
)).start()
|
||||
clear_item()
|
||||
|
||||
|
||||
def clear_item():
|
||||
|
Loading…
x
Reference in New Issue
Block a user