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

Function fetchPlaylist

Extensions/bookmark.js:553–563  ·  view source on GitHub ↗
(uri)

Source from the content-addressed store, hash-verified

551 };
552
553 const fetchPlaylist = async (uri) => {
554 const res = await Spicetify.CosmosAsync.get(`sp://core-playlist/v1/playlist/${uri}/metadata`, {
555 policy: { picture: true, name: true },
556 });
557 return {
558 uri,
559 title: res.metadata.name,
560 description: "Playlist",
561 imageUrl: res.metadata.picture,
562 };
563 };
564
565 new Spicetify.ContextMenu.Item(
566 "Bookmark",

Callers 1

bookmark.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected