You've already forked my-video-workflow
弹幕异常时,跳过任务
This commit is contained in:
@ -9,7 +9,11 @@ def do_workflow(video_file, danmaku_base_file, *danmaku_files):
|
||||
if not os.path.exists(danmaku_base_file):
|
||||
...
|
||||
result = []
|
||||
try:
|
||||
start_ts = get_file_start(danmaku_base_file)
|
||||
except DanmakuException:
|
||||
print("基准弹幕文件异常,跳过")
|
||||
return
|
||||
result.append(danmaku_to_subtitle(danmaku_base_file, 0))
|
||||
for danmaku_file in danmaku_files:
|
||||
try:
|
||||
|
Reference in New Issue
Block a user