mashTape and APIs

March 30th, 2008 Stephen Lau

Hacking on my mashTape extension has been a great way to find some wicked APIs and get the extension developer’s perspective on Songbird platform development. This morning’s hacking has made me realise we need a better way to allow extensions using display panes to set context for when their display pane should be visible. For instance, mashTape makes little sense when not listening to music. I’d love to be able to set something in my install.rdf, or in my display pane registration code to the effect of:

  • Don’t show when “not playing”
  • Don’t show in a non-media view (e.g. when I’m browsing the web, etc.)

I’ll have to think about it a little more and writeup a story/bug to figure out how I’d like to register this context for my display pane. Right now I’ve done it in mashTape through a combination of a tabbrowser select-tab listener, and a WebProgressListener, which seems like a lot of unnecessary work.

On the topic of APIs… I love Last.fm’s APIs, but it’s frustrating that their API for getting the artist bio information is incomplete. Perhaps it’s to drive traffic to their site (which is understandable), but I often get email requests to expose more of the bio information. Looking around, Freebase has got a wicked cool API, and they’ve somehow scraped Wikipedia’s great content into a bio/article for the artist. I’d love to use it… if only I could figure out how to get the bio! I played with their APIs for at least an hour this morning, and could grab all the information for everything except the “a.k.a.” and “bio/article” sections. Ugh.

Somehow I got from Freebase’s site over to DBpedia where they’ve built XML/RDF interfaces for Wikipedia’s content, and within 5 minutes I had a successful call to grab and parse out the full Wikipedia abstract text for artist bio, years active, etc. etc. I’m psyched. Now I just need to integrate that into mashTape and I should have a full artist bio.

[tags: Songbird]


6 Comments Add your own


Leave a Comment

Required

Required, hidden



Some HTML allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Trackback this post  |  Subscribe to comments via RSS Feed

Search

Pages


New Photos

2008-09-13 Visiting the family in Toronto by Stephen Lau2008-08-23 Mike & Mara's Wedding by Stephen Lau
2008-09-15 Mozilla Toronto Developer Day by Stephen Lau2008-07-24 The After After Party @ OpenSourcery by Stephen Lau
2008-07-24 Beerforge (The Songbird Party) by Stephen Lau2008-07-24 OSCON Day 2 at the Booth by Stephen Lau
2008-07-23 John Plocher vs. Jörg Schilling Sumo Wrestle by Stephen Lau2008-07-23 OSCON Day 1 by Stephen Lau
2008-07-22 OSCON Day 0 by Stephen Lau2008-07-21 Bummin' Around Portland by Stephen Lau

Categories