MCPcopy
hub / github.com/spicetify/cli / fetchQueue

Function fetchQueue

Extensions/shuffle+.js:461–469  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

459 }
460
461 function fetchQueue() {
462 const { _queueState } = Spicetify.Platform.PlayerAPI._queue;
463 const nextUp = _queueState.nextUp.map((track) => track.uri);
464 const queued = _queueState.queued.map((track) => track.uri);
465 const array = [...new Set([...nextUp, ...queued])];
466 const current = _queueState.current?.uri;
467 if (current) array.push(current);
468 return array;
469 }
470
471 async function fetchCollection(uriObj) {
472 const { category, type } = uriObj;

Callers 1

fetchAndPlayFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected