diff --git a/netlify/edge-functions/now-playing.js b/netlify/edge-functions/now-playing.js index b92f7e41..e44ee9cb 100644 --- a/netlify/edge-functions/now-playing.js +++ b/netlify/edge-functions/now-playing.js @@ -12,8 +12,7 @@ export default async () => { }) .then((data) => data.json()) .catch() - const trackData = await trackRes.json() - const track = trackData['attributes'][0] + const track = trackRes.data[0]['attributes'] return Response.json({ artist: track['artistName'], diff --git a/src/_data/nav.js b/src/_data/nav.js index 7477ef0b..da0cd7f0 100644 --- a/src/_data/nav.js +++ b/src/_data/nav.js @@ -13,11 +13,10 @@ module.exports = async function () { { name: 'Email', url: 'mailto:coryd@fastmail.com', icon: 'at' }, { name: 'GitHub', url: 'https://github.com/cdransf', icon: 'brand-github' }, { name: 'Mastodon', url: 'https://social.lol/@cory', icon: 'brand-mastodon' }, - { name: 'Last.fm', url: 'https://www.last.fm/user/cdrn_', icon: 'brand-lastfm' }, { - name: 'Spotify', - url: 'https://open.spotify.com/user/mdh0acvmvfsbunzt6ywnq2tg3', - icon: 'brand-spotify', + name: 'Apple Music', + url: 'https://music.apple.com/profile/cdransf', + icon: 'device-airpods', }, { name: 'Trakt', url: 'https://trakt.tv/users/cdransf', icon: 'device-tv' }, { name: 'Goodreads', url: 'https://www.goodreads.com/cdransf', icon: 'books' },