>
Listeners: 00 - Peak: 00
Bitrate: 00 Kbps 44.100 Khz

0:00

 

  • Tracks
  • Year7151
  • Month687
  • Day37
  • Albums
  • Year160
  • Month11

 

 

url = 'http://ws.audioscrobbler.com/2.0/?method=user.getrecenttracks&limit=1'; $this->url .= '&user=' . $user . '&api_key=' . $api_key; $this->noTrackPlayingMessage = 'All Quiet - Silence is Golden'; } public function getNowPlaying(){ $xml = simplexml_load_file($this->url); $track = $xml->recenttracks->track; $nowplaying = $track->attributes()->nowplaying; if($nowplaying){ $artist = $track->artist; $songname = $track->name; $albumname = $track->album; $albumart = $track->album->image[2]; return ' ' . ' ' . $artist . ' - ' . $songname; } else{ return $this->noTrackPlayingMessage; } } public function setNoTrackPlayingMessage($messageIn){ $this->noTrackPlayingMessage = $messageIn; } } $nowPlaying = new NowPlaying('windhamdavid', 'e12ea1d0253898ee9a93edfe42ffdeab'); ?>
Currently Playing
  • getNowPlaying(); ?>
Recently Played
Artists: 7 Days
Tracks: 7 Days
Artists: 1 Month
Tracks: 1 Month
Artists: 6 Months
Tracks: 6 Months
Artists: 1 Year
Tracks: 1 Year
Top 200 Albums From the Last Year