Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/routes/spotify/artist.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ async function handler(ctx) {
Authorization: `Bearer ${token}`,
},
});
const itemsResponse = await ofetch(`https://api.spotify.com/v1/artists/${id}/albums`, {
const itemsResponse = await ofetch(`https://api.spotify.com/v1/artists/${id}/albums?include_groups=album,single,ep,appears_on,compilation`, {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh - my bad. Do you know how to include EPs? I didn't see them show up in any other field so assumed that it must exist.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

method: 'GET',
headers: {
Authorization: `Bearer ${token}`,
Expand Down
Loading