From 917cd32e7769530d07c95afc45e1f29054bcd972 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Sun, 21 Dec 2025 01:00:40 +0000 Subject: [PATCH 1/4] Add Python video server with range support Co-authored-by: mathieumoran1 --- .gitignore | 6 +- README.md | 33 ++++ __pycache__/video_server.cpython-312.pyc | Bin 0 -> 8803 bytes media/.gitkeep | 1 + public/js/app_player.js | 2 +- requirements.txt | 2 + video_server.py | 208 +++++++++++++++++++++++ 7 files changed, 250 insertions(+), 2 deletions(-) create mode 100644 __pycache__/video_server.cpython-312.pyc create mode 100644 media/.gitkeep create mode 100644 requirements.txt create mode 100644 video_server.py diff --git a/.gitignore b/.gitignore index 5af23d6..d6b7901 100644 --- a/.gitignore +++ b/.gitignore @@ -136,4 +136,8 @@ dist .pnp.* # ayylmao -ayylmao.js \ No newline at end of file +ayylmao.js + +# Local media files (served by python video_server.py) +media/* +!media/.gitkeep \ No newline at end of file diff --git a/README.md b/README.md index c3036f7..341d83a 100644 --- a/README.md +++ b/README.md @@ -14,3 +14,36 @@ Config those in your .env file: **OMDB_API=**`1234567`     (for movie info) run with **node .\index.js** + +## Python video file server (mp4/mkv) +This repo also includes a small Python server that serves local video files with **HTTP Range** support (required for HTML5 `