Browse Source

perf(video

tianyunperfect 3 months ago
parent
commit
2b42de2e42
1 changed files with 1 additions and 1 deletions
  1. 1 1
      video_play/main.py

+ 1 - 1
video_play/main.py

@@ -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'])