Ver Fonte

perf(video

tianyunperfect há 3 meses atrás
pai
commit
2b42de2e42
1 ficheiros alterados com 1 adições e 1 exclusões
  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'])