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

Method get

apps/channels/views.py:16–21  ·  view source on GitHub ↗
(self, request, *args, **kwargs)

Source from the content-addressed store, hash-verified

14 Example “dashboard” style view for Streams
15 """
16 def get(self, request, *args, **kwargs):
17 streams = Stream.objects.values(
18 'id', 'name', 'url',
19 'channel_group', 'current_viewers'
20 )
21 return JsonResponse({'data': list(streams)}, safe=False)
22
23 def post(self, request, *args, **kwargs):
24 """

Callers 15

refresh_epg_programsFunction · 0.45
revoke_taskFunction · 0.45
schedule_task_on_saveFunction · 0.45
get_cache_urlMethod · 0.45
get_stream_countMethod · 0.45
validateMethod · 0.45
get_source_streamMethod · 0.45
to_representationMethod · 0.45
createMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected