Thread
:
Any good software for batch/multiple mp3/ID tag editor?
View Single Post
para
2009-08-31 , 17:38
Posts: 12 | Thanked: 3 times | Joined on Jul 2009
#
11
FWIW, I use id3tag ( from id3lib ) with a wrapper ruby program, which uses the directory structure the mp3 file is in to make tag entries.
#!/usr/bin/ruby
Dir.glob("*.mp3") {|file|
pth = Dir.pwd
pthcmp = pth.split(pattern='/')
album = "\"" + pthcmp[pthcmp.length-1] + "\""
artist = "\"" + pthcmp[pthcmp.length-2] + "\""
title = "\"" + file.slice(2,file.length-7) + "\""
track = file.slice(0,2)
s = "id3tag -a " + artist + " -s " + title + " -A " + album + " -t " + track + " " + "\"" + file + "\""
printf("%s\n",s)
system(s)
}
Quote & Reply
|
The Following User Says Thank You to para For This Useful Post:
bunanson
para
View Public Profile
Send a private message to para
Find all posts by para