Spaces:
Running
Running
Download main_patch.py from bep40/VNEWS: direct link, hf CLI and curl.
- Browser
- Download file 423 Bytes
-
https://huggingface.co/spaces/bep40/VNEWS/resolve/refs%2Fpr%2F28/main_patch.py
- Command line
-
hf download hf://spaces/bep40/VNEWS@refs/pr/28/main_patch.py
-
curl -L -o main_patch.py https://huggingface.co/spaces/bep40/VNEWS/resolve/refs%2Fpr%2F28/main_patch.py
423 Bytes
| # PATCH: Add these 2 lines to main.py right after "app = FastAPI()" | |
| # Line 1: from vtv_api import router as vtv_router | |
| # Line 2: app.include_router(vtv_router) | |
| # | |
| # This enables the VTV1-VTV10 + VTVPrime stream endpoints: | |
| # GET /api/vtv/streams - Get all channel streams | |
| # GET /api/vtv/stream/{id} - Get specific channel stream | |
| # GET /api/proxy/page?url=... - Proxy web pages (for xemtv PHP scraping) | |