MCPcopy Create free account
hub / github.com/Dispatcharr/Dispatcharr / stream_endpoint

Function stream_endpoint

apps/proxy/hls_proxy/views.py:16–26  ·  view source on GitHub ↗

Handle HLS manifest requests

(request, channel_id)

Source from the content-addressed store, hash-verified

14@csrf_exempt
15@require_http_methods(["GET"])
16def stream_endpoint(request, channel_id):
17 """Handle HLS manifest requests"""
18 if channel_id not in proxy_server.stream_managers:
19 return JsonResponse({'error': 'Channel not found'}, status=404)
20
21 response = proxy_server.stream_endpoint(channel_id)
22 return StreamingHttpResponse(
23 response[0],
24 content_type='application/vnd.apple.mpegurl',
25 status=response[1]
26 )
27
28@csrf_exempt
29@require_http_methods(["GET"])

Callers

nothing calls this directly

Calls 1

stream_endpointMethod · 0.80

Tested by

no test coverage detected