You've already forked my-video-workflow
自动投稿alpha
This commit is contained in:
@ -27,8 +27,9 @@ def do_workflow(video_file, danmaku_base_file, *danmaku_files):
|
||||
continue
|
||||
print(result)
|
||||
file_need_split = encode_video_with_subtitles(video_file, result, start_ts)
|
||||
_video_parts = []
|
||||
for file in file_need_split:
|
||||
quick_split_video(file)
|
||||
_video_parts += quick_split_video(file)
|
||||
# clean files
|
||||
for file in result:
|
||||
if os.path.isfile(file):
|
||||
@ -36,4 +37,4 @@ def do_workflow(video_file, danmaku_base_file, *danmaku_files):
|
||||
for file in file_need_split:
|
||||
if os.path.isfile(file):
|
||||
os.remove(file)
|
||||
|
||||
return _video_parts
|
||||
|
Reference in New Issue
Block a user