Linux 软件免费装

scr0bbled

开发者 01001111
更新时间 2010年1月16日 23:25
捐献地址: 去捐款
PHP版本: 2.0.2 及以上
WordPress版本: 2.7

标签

music widget lastfm

下载

详情介绍:

The scr0bbled widget/plugin will allow you to display a variable (and approximate) list of album images from tracks recently scrobbled to LastFM for any specific user.

安装:

  1. Upload 'scr0bbled.php' to the '/wp-content/plugins/' directory
  2. Activate the plugin through the 'Plugins' menu in WordPress
  3. Configure the widget in the widget section.
To use as a plugin in your theme, include the following: <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:

升级注意事项:

1.0.3
  • Miscellaneous fixes.
1.0.2
  • Fixed bug where title may not have been set.
1.0.1
  • Implemented non PHP 5 query string builder.

常见问题:

Why do I need a LastFM API key?

Because it is required to use the LastFM API and you can't have mine.

I just listened to / scrobbled a song and the image isn't showing up. Why?

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.

Less than X albums are showing up when I've clearly selected X

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.

Why do some albums show up multiple times?

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.

更新日志:

1.0.3 1.0.2 1.0.1 1.0.0