I've released a beta version of a new Song Info plugin. It adds a new CLI/JSON command to the server that makes it possible to retrieve additional information about a song, artist or album. The Album Flow applet uses this to get images, for example artist images from the LastFM web site.
For further information about the Album Flow integration that uses it for showing artist images from LastFM, see here: http://forums.slimdevices.com/showthread.php?p=529408#post529408 The plugin is available in my testing repository as all other beta versions: Code: -------------------- http://erlandplugins.googlecode.com/svn/repository/trunk/testing.xml -------------------- This is just the first version of the Song Info plugin, more information modules will come in the future and I'll probably also add a plugin API so information modules can be implemented as separate plugins. I'll announce it in a separate thread later and provide some more information. For developers interested, the CLI/JSON commands look like this: - Get all available information modules: songinfomodules - Get all available information modules that provides text items: songinfomodules type:text - Get all available information modules that provides images: songinfomodules type:image - Get all available information modules that provides images based on an artist: songinfomodules type:image context:artist To retrieve the information you use: - Get information from lastfmartistimages module about current song: 00:01:02:03:04:05 songinfoitems lastfmartistimages - Get information from lastfmartistimages module about a specific artist: 00:01:02:03:04:05 songinfoitems lastfmartistimages artist:42 - Get information from lastfmalbumimage module for a specific album: 00:01:02:03:04:05 songinfoitems lastfmalbumimage album:142 - Get information from lastfmtrackimage module for a specific track: 00:01:02:03:04:05 songinfoitems lastfmtrackimage track:2001 In this initial version, there is just a LastFM module included to show the concept that includes the following modules: - lastfmtracktags: LastFM tags for current song - lastfmsimilarartists: Artists similar to the specified artist based on LastFM - lastfmartistimages: Images of the specified artist from LastFM - lastfmartistbio: Biography text for the specified artist from LastFM - lastfmtrackimage: Image for the specified track from LastFM - lastfmsimilarartistsimages: Images of artists similar to the specified artist from LastFM - lastfmtrackdesc: Description text of the specified track from LastFM - lastfmalbumimage: Image for the specified album from LastFM - lastfmartisttags: Tags for the specified artist - lastfmalbumdesc: Album description from LastFM for the specified album An example of a JSON response looks like this for a image module: Code: -------------------- count => 2, item_loop => [ { text => "Melissa Horn", type => "image", url => "http://userserve-ak.last.fm/serve/_/5707275/Melissa+Horn.jpg", }, { text => "Melissa Horn", type => "image", url => "http://userserve-ak.last.fm/serve/_/19061825/Melissa+Horn.jpg", }, ] -------------------- And the same for a text module: Code: -------------------- count => 1, item_loop => [ { text => "Some text that contains the biography of the specified artist", type => "text", }, ] -------------------- The actual format of the response might be adjusted based on what we need so don't consider it to be the final version. I don't think there will be any huge changes but I have a feeling we might need to adjust it a bit depending on what kind of information module we find useful. Ideas for online or local information you would like to see about currently playing artist, album or track is welcome. I already have some ideas myself based on earlier discussions, like: - Information from a text file in the same directory as the album - Lyrics from lyricsfly.com or similar site - Tag information from Custom Scan plugin -- erland Erland Isaksson 'My homepage' (http://erland.isaksson.info) (Install my plugins through Extension Downloader) (Developer of 'TrackStat, SQLPlayList, DynamicPlayList, Custom Browse, Custom Scan, Custom Skip, Multi Library, Title Switcher and Database Query plugins' (http://wiki.erland.isaksson.info/index.php/Category:SlimServer)) ------------------------------------------------------------------------ erland's Profile: http://forums.slimdevices.com/member.php?userid=3124 View this thread: http://forums.slimdevices.com/showthread.php?t=76688 _______________________________________________ plugins mailing list [email protected] http://lists.slimdevices.com/mailman/listinfo/plugins
