Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Mass MP3 Summary editing.

Status
Not open for further replies.

MonsterAar

Programmer
Aug 16, 2006
24
AU
What I want to do is write a program that will take two inputs from the user: a folder (eg. C:\Documents and Settings\Owner\My Documents\My Music\MP3) and a string (eg. "Don't steal music!") and change the summaries of every MP3 in that folder (including in sub-directories) and change the 'Comments' field to the input string.

To be honest I have no idea where to start. I'm not sure how MP3s store summary data or how to achieve this sort of mass editing.

Anyone that could help me get started?
 
MP3::Tag might be what you're looking for:
As for reading the directories, make a recursive subroutine using opendir, readdir, and closedir.. quick pseudocode

Code:
sub scan {
   get $dir from @_
   opendir $dir
   foreach $file readdir $dir
      if $file is a folder
         scan "$dir/$file"
      else
         do something with "$dir/$file"
   closedir $dir
}

-------------
Kirsle.net | Kirsle's Programs and Projects
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top