[Playlist] xspf resolver

Lucas Gonze lgonze at panix.com
Tue Nov 21 01:05:43 UTC 2006


That's fantastically simple.  Very clean way of tackling this potentially 
big and messy problem.  I like the symmetry of having XSPF return to its 
roots in Musicbrainz, and I *really* like that the underlying engine is 
free software.

Thanks for sharing that.

On Mon, 20 Nov 2006, Paul Lamere wrote:

> Lucas:
>
> No limits on what I can say about this.  The current version is pretty 
> simple:
>
>   * Read and parse the XSPF (it must be valid xml)
>   * For each track, if the field exists get the
>         o track title
>         o track creator
>         o track album
>         o Make a query to musicBrainz of the form
>           http://musicbrainz.org/ws/1/track?type=xml&title=buddy+holly&artist=weezer&release=Weezer
>           (of course, omitting any missing fields)
>         o Get the result list - which contains an ordered list of the
>           best matches -  I take the best match (regardless of the
>           score) as the proper match
>         o Extract out the track, artist, album and musicbrainz ID from
>           the musicbrainz DOM
>         o Insert (or replace) the proper field in the XSPF DOM, as
>           well as a comment to indicate which fields have been added
>           or change
>   * Output the updated XSPF
>
> As you can see, the hard work is all done by musicbrainz - Robert's nifty 
> fuzzy match is key.
>
>



More information about the Playlist mailing list