From 39f7dd74359aad4ff5e996a57d9e73ce21fda7b2 Mon Sep 17 00:00:00 2001 From: flashwave Date: Thu, 20 May 2021 22:53:11 +0200 Subject: [PATCH] Added artist url to XML output. --- public/get.php | 1 + 1 file changed, 1 insertion(+) diff --git a/public/get.php b/public/get.php index 38a16b2..a77d28f 100644 --- a/public/get.php +++ b/public/get.php @@ -139,6 +139,7 @@ switch($format) { $artist = $elem->appendChild($document->createElement('Artist')); $artist->appendChild($document->createElement('Name', htmlspecialchars($recentTrack->artist?->{"#text"} ?? ''))); $artist->appendChild($document->createElement('Mbid', $recentTrack->artist?->mbid ?? '')); + $artist->appendChild($document->createElement('Url', htmlspecialchars(explode('/_/', $recentTrack->url, 2)[0]))); $album = $elem->appendChild($document->createElement('Album')); $album->appendChild($document->createElement('Name', htmlspecialchars($recentTrack->album?->{"#text"} ?? '')));