Ears
====

This is a collection of programs that originally accumulated within my
"lastfmsubmitd" package. They gather data from MusicBrainz and use it to
rip CDs and/or submit to Last.fm.

Querying
========

mbget will read the CD in your computer's CD-ROM drive, query
MusicBrainz for its album information, and output it in YAML. This
format is like the one lastfmsubmitd uses, but it does not contain the
time of submission. Instead of reading from the CD-ROM drive, you can
also specify an album with --discid or --albumid. If a list of track
numbers is also specified, only those tracks will be printed.

If you are really lazy and don't want to put the CD in, you can use
mbfind, specify the album name with --album, and choose the album's MBID
from that. (You can also try specifying --artist, but at the moment it
does not really work and cannot be used in combination with --album.)

Ripping CDs
===========

peel, the CD ripper, reads a description of tracks to rip from standard
input. So, here's the trivial case of ripping a CD:

    $ mbget | peel

Replaying tracks from a CD
==========================

lastcd will take a list of songs encoded in this format, add submission
times to them as if they had all just been played in order, and write
them to lastfmsubmitd's spool or stdout.

Requirements
============

  * python-musicbrainz, available from
    http://musicbrainz.org/doc/PythonMusicbrainz.

Author and License
==================

Copyright © 2006-2008 Decklin Foster <decklin@red-bean.com>.

Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
