View Single Post
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)
}
 

The Following User Says Thank You to para For This Useful Post: