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

Function fetchLikedTracks

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

Source from the content-addressed store, hash-verified

447 }
448
449 async function fetchLikedTracks() {
450 const res = await Spicetify.CosmosAsync.get("sp://core-collection/unstable/@/list/tracks/all?responseFormat=protobufJson");
451
452 return res.item.filter((track) => track.trackMetadata.playable).map((track) => track.trackMetadata.link);
453 }
454
455 async function fetchLocalTracks() {
456 const res = await Spicetify.Platform.LocalFilesAPI.getTracks();

Callers 1

fetchCollectionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected