开发者 | 01001111 |
---|---|
更新时间 | 2010年1月16日 23:25 |
捐献地址: | 去捐款 |
PHP版本: | 2.0.2 及以上 |
WordPress版本: | 2.7 |
<php $s = new scr0bbled($apiKey,$user,$nAlbums,$imageSize,$title,$divid); echo $s->latestAlbums(); ?>
And set the appropriate variables or leave blank for defaults ($apiKey and $user are required).
The configuration parameters are:
Because it is required to use the LastFM API and you can't have mine.
If there is no album art associated with that track on LastFM then it will not be returned to the widget. Submit the appropriate artwork to LastFM to make it available to the widget and the world over.
There's no way to grab a certain number of recently listened albums in one request so, rather than assaulting LastFM with multiple requests, I've used 10 as a multiplier to approximate the tracks needed to get the requested number of albums. Tracks without artwork or albums with a large number of tracks (like Pg Destroyer's "37 Counts of Battery") can thwart this valiant effort.
If the album name associated with one track differs slightly from that of another track that is supposed to be from the same album (such as happens with His Hero Is Gone - "Fifteen Counts of Arson" which is also listed at times as "15 Counts of Arson") then, unfortunately, the album will appear twice. Again, try rectify this problem through LastFM by making sure all of the album associations are correct and consistent.