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"} ?? '')));