musicfix

music file renamer and tagger
git clone git://git.2f30.org/musicfix
Log | Files | Refs | README | LICENSE

commit 310ee989ecc33bd096075547bea51232daaec531
parent f241624680301187e26415c502718b7845bd93e9
Author: lostd <lostd@2f30.org>
Date:   Mon, 22 Apr 2013 09:45:22 +0000

Update supported formats list

Diffstat:
Mbin/musicfix | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/bin/musicfix b/bin/musicfix @@ -124,8 +124,10 @@ puts 'Configuration' puts cfg.to_yaml unless cmd == 'dump' then + # Supported formats + fmtre = /mp3|ogg|m4a|mpc|flac|wv/i # Construct file list - fl = Dir['*'].select {|f| File.extname(f).match /mp3|ogg|mpc|flac|wv/i}.sort + fl = Dir['*'].select {|f| File.extname(f).match fmtre}.sort if fl.empty? then puts 'No music files found!' exit