From e9aa68e43bc7470d4b754c2f21bb9cf0e8694574 Mon Sep 17 00:00:00 2001 From: Cory Dransfeldt Date: Sat, 30 Mar 2024 16:41:32 -0700 Subject: [PATCH] chore: scrobbling --- src/_data/music.js | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/_data/music.js b/src/_data/music.js index 49513dfd..6e27414b 100644 --- a/src/_data/music.js +++ b/src/_data/music.js @@ -1,13 +1,13 @@ -import EleventyFetch from '@11ty/eleventy-fetch'; -import { buildChart } from './helpers/music.js' +// import EleventyFetch from '@11ty/eleventy-fetch'; +// import { buildChart } from './helpers/music.js' -export default async function () { - const API_KEY_MUSIC = process.env.API_KEY_MUSIC; - const url = `https://coryd.dev/api/music?key=${API_KEY_MUSIC}`; - const res = EleventyFetch(url, { - duration: '1h', - type: 'json', - }).catch(); - const resObj = await res; - return buildChart(resObj['data']) -} +// export default async function () { +// const API_KEY_MUSIC = process.env.API_KEY_MUSIC; +// const url = `https://coryd.dev/api/music?key=${API_KEY_MUSIC}`; +// const res = EleventyFetch(url, { +// duration: '1h', +// type: 'json', +// }).catch(); +// const resObj = await res; +// return buildChart(resObj['data']) +// }