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

Function fetchEpisode

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

Source from the content-addressed store, hash-verified

539 };
540
541 const fetchEpisode = async (uri) => {
542 const base62 = uri.split(":")[2];
543 const res = await CosmosAsync.get(`https://api.spotify.com/v1/episodes/${base62}`);
544 console.log(res);
545 return {
546 uri,
547 title: res.name,
548 description: `${res.show.name} episode`,
549 imageUrl: res.show.images[0].url,
550 };
551 };
552
553 const fetchPlaylist = async (uri) => {
554 const res = await Spicetify.CosmosAsync.get(`sp://core-playlist/v1/playlist/${uri}/metadata`, {

Callers 1

bookmark.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected