MCPcopy Index your code
hub / github.com/beetbox/beets / callback

Method callback

test/plugins/test_spotify.py:309–327  ·  view source on GitHub ↗
(request)

Source from the content-addressed store, hash-verified

307 ids_per_request = []
308
309 def callback(request):
310 ids = _params(request.url)["ids"][0].split(",")
311 ids_per_request.append(len(ids))
312 return (
313 200,
314 {"Content-Type": "application/json"},
315 json.dumps(
316 {
317 "tracks": [
318 {
319 "id": track_id,
320 "popularity": 50,
321 "external_ids": {},
322 }
323 for track_id in ids
324 ]
325 }
326 ),
327 )
328
329 responses.add_callback(
330 responses.GET,

Callers

nothing calls this directly

Calls 1

_paramsFunction · 0.85

Tested by

no test coverage detected