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

Method track_callback

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

Source from the content-addressed store, hash-verified

444 seen_audio_ids = []
445
446 def track_callback(request):
447 ids = _params(request.url)["ids"][0].split(",")
448 seen_track_ids.append(ids)
449 return (
450 200,
451 {"Content-Type": "application/json"},
452 json.dumps(
453 {
454 "tracks": [
455 {
456 "id": track_id,
457 "popularity": 50,
458 "external_ids": {},
459 }
460 for track_id in ids
461 ]
462 }
463 ),
464 )
465
466 def audio_callback(request):
467 ids = _params(request.url)["ids"][0].split(",")

Callers

nothing calls this directly

Calls 1

_paramsFunction · 0.85

Tested by

no test coverage detected