chore: scrobbling

This commit is contained in:
Cory Dransfeldt 2024-03-30 16:44:32 -07:00
parent e9aa68e43b
commit 0018a8f124
No known key found for this signature in database

View file

@ -1,13 +1,13 @@
// import EleventyFetch from '@11ty/eleventy-fetch'; import EleventyFetch from '@11ty/eleventy-fetch';
// import { buildChart } from './helpers/music.js' import { buildChart } from './helpers/music.js'
// export default async function () { export default async function () {
// const API_KEY_MUSIC = process.env.API_KEY_MUSIC; const API_KEY_MUSIC = process.env.API_KEY_MUSIC;
// const url = `https://coryd.dev/api/music?key=${API_KEY_MUSIC}`; const url = `https://coryd.dev/api/music?key=${API_KEY_MUSIC}`;
// const res = EleventyFetch(url, { const res = EleventyFetch(url, {
// duration: '1h', duration: '1h',
// type: 'json', type: 'json',
// }).catch(); }).catch();
// const resObj = await res; const resObj = await res;
// return buildChart(resObj['data']) return buildChart(resObj['data'])
// } }