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

Function fetchShows

Extensions/shuffle+.js:495–498  ·  view source on GitHub ↗
(uri)

Source from the content-addressed store, hash-verified

493 }
494
495 async function fetchShows(uri) {
496 const res = await Spicetify.CosmosAsync.get(`sp://core-show/v1/shows/${uri}?responseFormat=protobufJson`);
497 return res.items.filter((track) => track.episodePlayState.isPlayable).map((track) => track.episodeMetadata.link);
498 }
499
500 function shuffle(array) {
501 let counter = array.length;

Callers 1

fetchAndPlayFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected