(uri)
| 493 | } |
| 494 | |
| 495 | async function fetchShows(uri) { |
| 496 | const res = await Spicetify.CosmosAsync.get(`sp://core-show/v1/shows/${uri}?responseFormat=protobufJson`); |
| 497 | return res.items.filter((track) => track.episodePlayState.isPlayable).map((track) => track.episodeMetadata.link); |
| 498 | } |
| 499 | |
| 500 | function shuffle(array) { |
| 501 | let counter = array.length; |