Added artist url to XML output.

This commit is contained in:
flash 2021-05-20 22:53:11 +02:00
parent d8c217a986
commit 39f7dd7435

View file

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