diff --git a/netlify/edge-functions/now-playing.js b/netlify/edge-functions/now-playing.js
index 350fdc3d..443e1e78 100644
--- a/netlify/edge-functions/now-playing.js
+++ b/netlify/edge-functions/now-playing.js
@@ -77,15 +77,13 @@ export default async () => {
if (Object.keys(traktRes).length) {
if (traktRes['type'] === 'episode') {
return Response.json({
- text: `📺 ${traktRes['show']['title']} • ${traktRes['episode']['title']}`,
- html: `📺 ${traktRes['show']['title']} • ${traktRes['episode']['title']}`,
+ content: `📺 ${traktRes['show']['title']} • ${traktRes['episode']['title']}`,
})
}
if (traktRes['type'] === 'movie') {
return Response.json({
- text: `🎥 ${traktRes['movie']['title']}`,
- html: `🎥 ${traktRes['movie']['title']}`,
+ content: `🎥 ${traktRes['movie']['title']}`,
})
}
}
@@ -120,8 +118,7 @@ export default async () => {
const startMinutes = parseInt(startTime.split(',')[1].split(':')[1].trim())
const endMinutes = parseInt(endTime.split(',')[1].split(':')[1].trim())
const res = {
- text: `🏀 ${game['awayTeam']['teamName']} (${game['awayTeam']['wins']}-${game['awayTeam']['losses']}) @ ${game['homeTeam']['teamName']} (${game['homeTeam']['wins']}-${game['homeTeam']['losses']})`,
- html: `🏀 ${game['awayTeam']['teamName']} (${game['awayTeam']['wins']}-${game['awayTeam']['losses']}) @ ${game['homeTeam']['teamName']} (${game['homeTeam']['wins']}-${game['homeTeam']['losses']})`,
+ content: `🏀 ${game['awayTeam']['teamName']} (${game['awayTeam']['wins']}-${game['awayTeam']['losses']}) @ ${game['homeTeam']['teamName']} (${game['homeTeam']['wins']}-${game['homeTeam']['losses']})`,
}
if (isCorrectDate) {
@@ -159,8 +156,7 @@ export default async () => {
: `https://musicbrainz.org/search?query=${track['artistName'].replace(/\s+/g, '+')}&type=artist`
return Response.json({
- text: `🎧 ${sanitizeTrack(track['name'])} by ${artist}`,
- html: `🎧 ${sanitizeTrack(
+ content: `🎧 ${sanitizeTrack(
track['name']
)} by ${artist}`,
})
diff --git a/src/assets/scripts/script.js b/src/assets/scripts/script.js
index 10a84062..3a1d97fe 100644
--- a/src/assets/scripts/script.js
+++ b/src/assets/scripts/script.js
@@ -7,7 +7,7 @@
const populateNowPlaying = (data) => {
loading.style.display = 'none'
- content.innerHTML = data.html
+ content.innerHTML = data.content
content.classList.remove('hidden')
}