The Following User Says Thank You to para For This Useful Post: | ||
|
2009-12-06
, 17:13
|
Posts: 4,030 |
Thanked: 1,633 times |
Joined on Jul 2007
@ nd usa
|
#12
|
|
2009-12-06
, 17:34
|
Posts: 1,179 |
Thanked: 770 times |
Joined on Nov 2009
|
#14
|
|
2009-12-06
, 19:13
|
Posts: 4,030 |
Thanked: 1,633 times |
Joined on Jul 2007
@ nd usa
|
#15
|
|
2009-12-07
, 19:13
|
Posts: 296 |
Thanked: 47 times |
Joined on Oct 2009
|
#16
|
Tags |
mp3, mp3 catalog, mp3 tags |
|
#!/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)
}