Add XC endpoints for VOD.

This commit is contained in:
SergeantPanda 2025-08-08 09:03:25 -05:00
parent 00361c15b9
commit d054e2cac5
3 changed files with 111 additions and 1 deletions

View file

@ -9,6 +9,7 @@ from drf_yasg import openapi
from .routing import websocket_urlpatterns
from apps.output.views import xc_player_api, xc_panel_api, xc_get, xc_xmltv
from apps.proxy.ts_proxy.views import stream_xc
from apps.output.views import xc_movie_stream, xc_series_stream
# Define schema_view for Swagger
schema_view = get_schema_view(
@ -55,6 +56,17 @@ urlpatterns = [
stream_xc,
name="xc_stream_endpoint",
),
# XC VOD endpoints
path(
"movie/<str:username>/<str:password>/<str:stream_id>.<str:extension>",
xc_movie_stream,
name="xc_movie_stream",
),
path(
"series/<str:username>/<str:password>/<str:stream_id>.<str:extension>",
xc_series_stream,
name="xc_series_stream",
),
# Swagger UI
path(
"swagger/",