自动投稿alpha

This commit is contained in:
2022-07-25 16:24:11 +08:00
parent 59f199db33
commit ef10d0bf0f
16 changed files with 1086 additions and 15 deletions

View File

@ -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