Added Last.fm linkage
This commit is contained in:
@@ -46,6 +46,11 @@ if ($response === FALSE) {
|
|||||||
if ($artist !== '') echo '<br>' . htmlspecialchars($artist, ENT_QUOTES | ENT_SUBSTITUTE, 'UTF-8');
|
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 ($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 →</a>';
|
||||||
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
echo "RFE is currently offline! Please check back later!";
|
echo "RFE is currently offline! Please check back later!";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user