@@ -142,7 +142,7 @@ def play_video(md5):
"""播放接口"""
for f in scan_files():
if f['md5'] == md5:
- return send_file(f['path'])
+ return send_file(f['path'], conditional=True)
return "Not Found", 404
@app.route('/weight/<md5>', methods=['POST'])