diff options
author | Frankie B <floppydisk05@aol.com> | 2022-11-18 12:06:33 +0000 |
---|---|---|
committer | Frankie B <floppydisk05@aol.com> | 2022-11-18 12:06:33 +0000 |
commit | ce8ea31fe594b290ddb3bf9f162b3138a1ce961f (patch) | |
tree | 219041384f20a9138b59712890a2c771313b9183 /inc | |
parent | 205136a085292ca2b2f5a01984f27c36b3a494bb (diff) |
Re-arrange last.fm page
Diffstat (limited to 'inc')
-rw-r--r-- | inc/lastfm.inc.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/inc/lastfm.inc.php b/inc/lastfm.inc.php index d0753b7..b7bbde4 100644 --- a/inc/lastfm.inc.php +++ b/inc/lastfm.inc.php @@ -1,4 +1,4 @@ -<h1>Last.fm</h1> +<h1>Last.fm <small><a href="https://www.last.fm/user/floppydisk_">Profile</a></small></h1> <?php require('inc/config.inc.php'); @@ -25,7 +25,7 @@ if ($err) { $current_response = json_decode($current_response, true); $nowplaying = $current_response['recenttracks']['track'][0]; -echo ' <b>Now Playing:</b> <a href="'.$nowplaying['url'].'">'.$nowplaying['name'].' • '.$nowplaying['artist']['#text'].'</a>'.PHP_EOL; +echo ' <b>Last/Current Track:</b> <a href="'.$nowplaying['url'].'">'.$nowplaying['name'].' • '.$nowplaying['artist']['#text'].'</a>'.PHP_EOL; $tracks_to_show = 10; @@ -49,7 +49,7 @@ curl_close($curl); if ($err) { die("cURL Error #:" . $err); } -echo ' <h2>Top '.$tracks_to_show.' Tracks (Last 7 days) <small><a href="https://www.last.fm/user/floppydisk_">Profile</a></small></h2>'.PHP_EOL; +echo ' <h2>Top '.$tracks_to_show.' Tracks (Last 7 days)</h2>'.PHP_EOL; echo ' <ol>'.PHP_EOL; $toptracks_response = json_decode($toptracks_response, true); $tracks = $toptracks_response['toptracks']['track']; |