musicfix

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

commit 4dad0ba6105ac68d1e02fc7b3d4822d3af347257
parent 033d36bcba914864170a3dcc7b3bf6b5695927a6
Author: lostd <lostd@2f30.org>
Date:   Wed Sep 25 12:55:46 +0000

Simplify logic for the vinyl format name

Diffstat:
bin/musicfix | 11+++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
diff --git a/bin/musicfix b/bin/musicfix @@ -94,14 +94,17 @@ end # Make a sane format string also using format description def mkformat format + f = [] + # Ignore in favor of LP/EP/7"/12" descriptions + unless format.name == "Vinyl" + f << formant.name + end if format.descriptions # Too general format.descriptions.delete "Album" - format.descriptions.delete "Vinyl" - "#{format.name} #{format.descriptions.join ' '}" - else - "#{format.name}" + f += format.descriptions end + f.join ' ' end # Shorten certain common words that appear in format strings