Skip to content

Commit

Permalink
修复字幕上传保存的文件错误问题 (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
CuSO4Gem authored Jun 25, 2024
1 parent 2cb5981 commit ded7679
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ def translated_zh_upload():
# if user does not select file, browser also
# submit an empty part without filename
if file and get_extension(file.filename):
filename = video_id + "_zh_merge.srt"
filename = video_id + "_zh_merged.srt"
print("save:" + filename)
file.save(os.path.join(output_path, filename))
return jsonify({"message": log_info_return_str(f"SRT {filename} uploaded")})
Expand Down

0 comments on commit ded7679

Please sign in to comment.