Mike Schilli's Friendly Neighborhood Perl Shop

Home
USArundbrief.com
Resume
CPAN Modules
Articles in English
Articles in German
Mike's Script Archive
English-Japanese Translation Trainer
Adventures with O'Reilly's Safari
10 Easy Steps to Become a California Driver
Unofficial perlmonks.com IRC Channel
My Collection of Outage Pages
Prisma (Computer Club Deutschland)
Mike's Monologues
Mike's Script Archive: mp3rename

mp3rename - Rename MP3 files according to contained MP3 tags


NAME

    mp3rename - Rename MP3 files according to contained MP3 tags


DOWNLOAD

mp3rename


SYNOPSIS

    mp3rename somefile.mp3


DESCRIPTION

mp3rename reads out a file's MP3 tags, confirms ambiguities with the user, and then renames the file according to the following naming scheme:

    Artist_-_AlbumTrack_-_Title.mp3

Like the popular crip program, this will abbreviate the album name with its initials. The following MP3 info led to the file name above:

    Green_Day_-_AI08_-_Shes_A_Rebel.mp3
      'YEAR' => '',
      'ARTIST' => 'Green Day',
      'COMMENT' => 'track08',
      'TITLE' => 'She\'s A Rebel',
      'ALBUM' => 'American Idiot',
      'GENRE' => '',
      'TAGVERSION' => 'ID3v1',
      'TRACKNUM' => ''

By default, all entries never seen by mp3rename are being confirmed with the user, who can either accept the entry by hitting Enter or enter a different string. All confirmed entries are stored in a GDBM database, ~/data/mp3rename.dat by default. If the same artist or album comes along later, mp3rename will pull it out of the database and won't ask the user to confirm it anymore.


EXAMPLES

    $ mp3rename somefile.mp3
    ARTIST Green Day
    [1] Green_Day
    [1]> (User hits Enter)
    ALBUM American Idiot
    [1] AI
    [1]> (User hits Enter)
    TITLE She's A Rebel
    [1] Shes_A_Rebel
    [1]> (User hits Enter)
    somefile.mp3 => Green_Day_-_AI08_-_Shes_A_Rebel.mp3


LEGALESE

Copyright 2004 by Mike Schilli, all rights reserved. This program is free software, you can redistribute it and/or modify it under the same terms as Perl itself.


AUTHOR

2004, Mike Schilli <cpan@perlmeister.com>


Latest update: 20-Oct-2013