lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


   Hi.
   I would like to use lua to automatically set id3 tags on my music files.
   The example usage would be:

ike:~/downloads/media/rooney - 2003 - rooney> ls
INCOMPLETE~albumartsmall.jpg rooney - 05 - popstars.mp3 INCOMPLETE~folder.jpg rooney - 06 - i'm shakin'.mp3 albumart_{1caae637-9f50-4e4b-b87d-9a67e946d5ae}_large.jpg rooney - 07 - daisy duke.mp3 albumartsmall.jpg rooney - 08 - sorry sorry.mp3 rooney - 01 - blueside.mp3 rooney - 09 - that girl has love.mp3 rooney - 02 - stay away.mp3 rooney - 10 - simply because.mp3 rooney - 03 - if it were up to me.mp3 rooney - 11 - losing all control.mp3
rooney - 04 - terrible person.mp3

ike:~/downloads/media/rooney - 2003 - rooney> lua -f myscript.lua *.mp3 "stringidentifyingthefilenameformat"

The filename format string would inform that the filename is of format ARTIST - TRACKNR - TITLE.mp3.
   Is there any easy way to do this ? Should i use string.gsub/gfind ?
I use the mp3info util to set id3 tag fields, that is covered. It contains an easy way to specify these fields through the command line.
   Thank you.
   -- Fred