[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

4.2 Adding MP3s

After you have created a CD, you can use the scancd command to add MP3s to it. This command will recursively scan the CD's directory for files ending with `.mp3' and add them to the database if they are not already in. Doodaha will try to split the filename into a band and track by assuming the filename is in the format `<band> - <track_name>.mp3'. If it can't find the characters ` - ' it will assume the whole filename (minus the `.mp3') is the track name and the band is `n/a'. If the band is not found in the database, it will add the band as well.

A new feature in version 0.3 lets you get the band and track name's from an MP3s ID3 tag. Run doodaha with the -i option to enable this. If the tag couldn't be read or isn't in the file it will resort back to the filename as before.

The scancd command takes one argument which is the name of the CD to scan. The name can either be given as the actual name or a # followed by the id number of the CD. All of the commands that take a name argument can be given in that way. The following example creates and scans an imaginary sixties CD.

 
/cdrom > ls
andy williams - can't take my eyes off you.mp3
david bowie - space oddity.mp3
dusty springfield - i just don't know what to do with myself.mp3
dusty springfield - i only want to be with you.mp3
mama cass - dream a little dream of me.mp3
/cdrom > doodaha -v -u doodah -p -d doodah \
> newcd sixtiescd ~/cdrom no \
> scancd sixtiescd;
Building command list
Enter password: 
Executing commands
 Executing `NewCd sixtiescd /cdrom false'
 Executing `ScanCd sixtiescd'
  Found CD with id 1 and directory `/cdrom'
  Processing directory `/cdrom/'
   Created band `andy williams'
   Added mp3 `andy williams - can't take my eyes off you'
   Created band `david bowie'
   Added mp3 `david bowie - space oddity'
   Created band `mama cass'
   Added mp3 `mama cass - dream a little dream of me'
   Created band `dusty springfield'
   Added mp3 `dusty springfield - i just don't know ...'
   Added mp3 `dusty springfield - i only want to be with you'


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

This document was generated by Neil Roberts on November, 8 2001 using texi2html