Added Last.fm linkage

This commit is contained in:
2026-05-21 14:43:26 -04:00
parent 9db31d0664
commit 138e91b37e
+5
View File
@@ -46,6 +46,11 @@ if ($response === FALSE) {
if ($artist !== '') echo '<br>' . htmlspecialchars($artist, ENT_QUOTES | ENT_SUBSTITUTE, 'UTF-8');
if ($album !== '') echo '<br>' . htmlspecialchars($album, ENT_QUOTES | ENT_SUBSTITUTE, 'UTF-8');
if ($artist !== '' && $title !== '') {
$lastfmUrl = 'https://www.last.fm/music/' . rawurlencode($artist) . '/_/' . rawurlencode($title);
echo '<br><a href="' . htmlspecialchars($lastfmUrl, ENT_QUOTES, 'UTF-8') . '" target="_blank" rel="noopener" style="color:#97C9D3;font-size:0.9em;">More on Last.fm &rarr;</a>';
}
} else {
echo "RFE is currently offline! Please check back later!";
}