Slashdot Mirror


Cultured Perl: Fun with MP3 and Perl, Part 2

Ted writes "I continues to look at manipulating and guessing MP3 tags with Perl, FreeDB, and various CPAN models via my autotag.pl application. Writing autotag.pl was grueling but fun. I used fuzzy string matching, FreeDB searches, ID3 versions 1 and 2, and lots of text-mode user interactions. It all came together in an application that I tested thoroughly over the course of a month. Info and Slashdot comments about Part One can be seen here, which was posted in December."

5 of 55 comments (clear)

  1. Re:Mmm Perl by metamatic · · Score: 4, Insightful

    Personally I'd just type " before and after pasting the filename with the spaces in.

    Filenames are for humans, fix the broken software that doesn't allow filenames with spaces in.

    --
    GCHQ Quantum Insert installed. If only our tongues were made of glass, how much more careful we would be when we speak
  2. Re:another rite of passage in perl. by haystor · · Score: 2, Insightful

    It is a testament to the effectiveness of these various languages that just anyone can produce something useful.

    --
    t
  3. Re:Mmm Perl by DrSkwid · · Score: 2, Insightful

    #!/usr/local/bin/rc

    for (mp3 in *.mp3) mpg123 $mp3

    fails if the filename contains a space

    ls -l *.mp3 | awk ' { print "%s is %d bytes\n", $9, $5 } '

    fails if the filename contains a space

    etc.

    spaces in filenames should be illegal

    --
    There are places where the networks are not touching,and there are places where they are-Boeing's Lori Gunter
  4. Re:Mmm Perl by damballah · · Score: 2, Insightful

    Software problem. Software that do not allow spaces in filenames should be illegal.

  5. Re:Musicbrainz? by Darth23 · · Score: 2, Insightful
    Sounds like something worht trying out. In all my years of P2P experience I've learned that there a re a lot of music fans out there who have no clue about what artist performed which songs.

    I just wish there was a way to tell them all that just because a song is a parody, doesn't necesarrily mean it was written and performend by Weird Al.

    --

    -------- In Soviet Russia, "Soviet Russia" sigs hate Slashdot.