From 094854e60d24caa8a82c52982d5880e52792460e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joey=20=F0=9F=98=8E?= <43940776+joeyboli@users.noreply.github.com> Date: Thu, 7 Aug 2025 16:47:21 +0000 Subject: [PATCH] Add support for new radioapi version. --- js/script.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/script.js b/js/script.js index 6d2e65b..603ca44 100644 --- a/js/script.js +++ b/js/script.js @@ -507,7 +507,7 @@ function getStreamingData() { var page = new Page() // Extract current song info from unified API - const song = data.title || "" + const song = data.song || "" const artist = data.artist || "" // Change the title @@ -523,8 +523,8 @@ function getStreamingData() { page.refreshCurrentSong(song, artist) // Update artwork using the direct URL from API - if (data.art) { - page.refreshCover(data.art, song, artist) + if (data.artwork) { + page.refreshCover(data.artwork, song, artist) } // Update lyrics