From d8c217a986d645f92ed238c4d85fad7439e93923 Mon Sep 17 00:00:00 2001 From: flashwave Date: Thu, 20 May 2021 22:50:41 +0200 Subject: [PATCH] Links and fading cover. --- public/get.php | 1 + public/index.html | 8 ++-- public/now.css | 18 ++++++--- public/now.js | 101 ++++++++++++++++++++++++++++++++++++++++------ 4 files changed, 106 insertions(+), 22 deletions(-) diff --git a/public/get.php b/public/get.php index e450bb9..38a16b2 100644 --- a/public/get.php +++ b/public/get.php @@ -106,6 +106,7 @@ switch($format) { $track->artist = new stdClass; $track->artist->name = $recentTrack->artist?->{"#text"} ?? ''; $track->artist->mbid = $recentTrack->artist?->mbid ?? ''; + $track->artist->url = explode('/_/', $track->url, 2)[0]; $track->album = new stdClass; $track->album->name = $recentTrack->album?->{"#text"}; diff --git a/public/index.html b/public/index.html index 44bbbac..fe67f98 100644 --- a/public/index.html +++ b/public/index.html @@ -31,12 +31,10 @@