Spaces:
Running
Running
Add VTV API router import helper
Browse files- main_patch.py +8 -0
main_patch.py
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# PATCH: Add these 2 lines to main.py right after "app = FastAPI()"
|
| 2 |
+
# Line 1: from vtv_api import router as vtv_router
|
| 3 |
+
# Line 2: app.include_router(vtv_router)
|
| 4 |
+
#
|
| 5 |
+
# This enables the VTV1-VTV10 + VTVPrime stream endpoints:
|
| 6 |
+
# GET /api/vtv/streams - Get all channel streams
|
| 7 |
+
# GET /api/vtv/stream/{id} - Get specific channel stream
|
| 8 |
+
# GET /api/proxy/page?url=... - Proxy web pages (for xemtv PHP scraping)
|