(uri)
| 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", |