Browse Source

perf(video

tianyunperfect 3 tháng trước cách đây
mục cha
commit
2b42de2e42
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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'])