fix: various small fixes

This commit is contained in:
Devin Haska 2024-03-01 15:19:19 -08:00
parent 9811b42b7a
commit e2d26a8b9a
5 changed files with 4 additions and 79 deletions

View file

@ -42,7 +42,7 @@ const fetchRecentAlbums = async (period = "7day") => {
const fetchRecentTracks = async () => {
const url = `http://ws.audioscrobbler.com/2.0/?method=user.getrecenttracks&user=wonderfulfrog&api_key=${lastFmApiKey}&format=json`;
const response = await EleventyFetch(url, { duration: "1m", type: "json" });
const response = await EleventyFetch(url, { duration: "5m", type: "json" });
const tracks = response.recenttracks.track.slice(0, 5);
const recentTracks = tracks.map((track) => {