Skip to content

Spent an hour or two writing a (basic) …

Spent an hour or two writing a (basic) WordPress plugin that consumes “audio scrobbles,” like those sent to Last.fm. So rather than (share my data with a third-party service and then) use their API to display a widget or whatever on my blog, my CMS itself is now the “audio scrobbling” endpoint.

Replies

  1. Bradley Bradley on

    … favorited this!

  2. Tim Chambers Tim Chambers on

    … favorited this!

  3. Jan Boddez Jan Boddez on

    Note that I still use (MPD and) mpdscribble, which for now uses the (deprecated) 1.2 API, and that the plugin currently only supports this API (and “auth token” authentication).

    Via geekcompass.com, in reply to Spent an hour or two writing a (basic) ….

  4. Jan Boddez Jan Boddez on

    Turns out, of course, that Peter’s already done the exact same thing, no less than six years ago. That said, my version totally abuses the REST API—the (deprecated) 1.2 version of the AudioScrobbler protocol is not at all based around JSON—which makes adding extra routes a complete no-brainer.

    Via jan.boddez.net, in reply to Spent an hour or two writing a (basic) ….

  5. Jan Boddez Jan Boddez on

    I _did_ copy bits of code, not from that plugin, but from Libre.fm/GNU FM/GNUkebox’s source! https://github.com/foocorp/gnu-fm/tree/master/gnukebox

    Via geekcompass.com, in reply to Spent an hour or two writing a (basic) ….

  6. Jan Boddez Jan Boddez on

    […] So, I looked at Libre.fm’s source code—Libre.fm being an open-source but somewhat outdated Last.fm alternative—and drew inspiration from it for a WordPress plugin of my own. (Of course, I later on discovered that such a plugin already existed.) […]

    Via jan.boddez.net, in reply to Spent an hour or two writing a (basic) ….