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

Function fetchShow

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

Source from the content-addressed store, hash-verified

492 };
493
494 const fetchShow = async (uri) => {
495 const base62 = uri.split(":")[2];
496 const res = await CosmosAsync.get(`sp://core-show/v1/shows/${base62}?responseFormat=protobufJson`, {
497 policy: { list: { index: true } },
498 });
499 return {
500 uri,
501 title: res.header.showMetadata.name,
502 description: "Podcast",
503 imageUrl: res.header.showMetadata.covers.standardLink,
504 };
505 };
506
507 const fetchArtist = async (uri) => {
508 const { queryArtistOverview } = Spicetify.GraphQL.Definitions;

Callers 1

bookmark.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected