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

Method list

apps/channels/api_views.py:181–189  ·  view source on GitHub ↗
(self, request, *args, **kwargs)

Source from the content-addressed store, hash-verified

179 return qs
180
181 def list(self, request, *args, **kwargs):
182 ids = request.query_params.get("ids", None)
183 if ids:
184 ids = ids.split(",")
185 streams = get_list_or_404(Stream, id__in=ids)
186 serializer = self.get_serializer(streams, many=True)
187 return Response(serializer.data)
188
189 return super().list(request, *args, **kwargs)
190
191 @action(detail=False, methods=["get"], url_path="ids")
192 def get_ids(self, request, *args, **kwargs):

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected