(uri)
| 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; |