About Me · Send mail to the author(s) E-mail · Twitter

At GROSSWEBER we practice what we preach. We offer trainings for modern software technologies like Behavior Driven Development, Clean Code and Git. Our staff is fluent in a variety of languages, including English.

Feed Icon


Open Source Projects


Blogs of friends

Now playing [?]

Error retrieving information from external service.

Audioscrobbler Plugin for dasBlog

Posted in dasBlog at Sunday, 22 January 2006 20:16 W. Europe Standard Time

Discovered today and immediately integrated into dasBlog: Audioscrobbler.

The service gives you the ability to upload information about the tracks you're listening to. It's hosted on, a social web radio service. They're tracking incoming song information and build charts and personal recommendations on top of them. I didn't test these features until now, but I believe that over time they'll give additional input to my music discovery process.

To use the service there are a few simple steps to take:

  1. Create a profile.
  2. Download and install the plugin for you favorite music player.

Your music player will then upload song information if you're online.

Macro OutputNow on to the best part: Audioscrobbler supports a Web Service interface to your profile and data. In my opinion, and ideal way to extend your blog. So did I, writing a macro assembly for use with dasBlog. Currently there are only two macros, one for showing a little Audioscrobbler icon. The other one displays the last songs played. The Web Service limits these to ten, the macro can be instructed to reduce the number of results even more.

Macro Description
<% Button()|Audioscrobbler %> Displays the Audioscrobbler logo.
<% RecentTracks(n)|Audioscrobbler %> Displays the n recent tracks. Values of n greater than 10 yield just 10 entries as the Web Service limits the output to this value.

Have a look at the right-hand side of this page. There you can see the outputs of these two macros under "Now Playing". (RecentTracks has been limited to 5.)

There are some configuration settings to make before you can use these custom macros.

  1. Download the macro and supplemental images.
  2. Copy Softwareschmiede.DasBlog.Macros.dll into the dasBlog\bin directory. (The binaries of dasBlog reside there, i.e. newtelligence.DasBlog.Runtime.dll)
  3. Copy the Audioscrobbler logo and the little icon that will be shown next to each track in the list to the dasBlog\images directory. Of course you can override these images in your custom theme.
  4. Edit theme.manifest adding the Audioscrobber logo image. (This step can be omitted if you don't plan to use the Button macro.)
    <?xml version="1.0" encoding="utf-8" ?>
    theme name="YourTheme" title="YourTheme" templateDirectory="themes/YourTheme" imageDirectory="themes/YourTheme"> <image name="AudioscrobblerButton" fileName="AudioscrobblerButton.png" />
  5. Edit dasBlog\web.config to let dasBlog know about the new macros.
    Depending on your configuration, uncomment or add the first and add the second line under /configuration/configSections.
    <section name="newtelligence.DasBlog.Macros" type="newtelligence.DasBlog.Web.Core.MacroSectionHandler, newtelligence.DasBlog.Web.Core" />
    <section name="Softwareschmiede.DasBlog.Macros.Audioscrobbler" type="Softwareschmiede.DasBlog.Macros.AudioscrobblerConfigSectionHandler, Softwareschmiede.DasBlog.Macros" />
    Uncomment or add the following lines under /configuration.
    	<add macro="Audioscrobbler" type="Softwareschmiede.DasBlog.Macros.Audioscrobbler.Macros, Softwareschmiede.DasBlog.Macros"/>
  6. Enter your user information under /configuration
    	<add setting="UserName" value="<Enter your user name here>"/>

Now you're ready to use the two macros as described above in your .blogtemplate files.

<% RecentTracks(5)|Audioscrobbler %>
<% Button()|Audioscrobbler %>

DownloadIf anyone is interested in extending the macros, download the Visual Studio Project.

Saturday, 21 February 2009 17:51:17 (W. Europe Standard Time, UTC+01:00)
nice ,i came to know about music player,tracking and upload info..
thnks alot..
Monday, 28 September 2009 00:20:45 (W. Europe Daylight Time, UTC+02:00)
The download link for the plugin doesn't work for me?!
Monday, 28 September 2009 00:28:20 (W. Europe Daylight Time, UTC+02:00)
The download link works. Alternatively, try
Thursday, 03 December 2009 00:48:20 (W. Europe Standard Time, UTC+01:00)
thanks for the new download link
it works for me
All comments require the approval of the site owner before being displayed.
(will show your gravatar icon)
[Captcha]Enter the code shown (prevents robots):

Live Comment Preview