musicfix

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

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

Simplify logic for the vinyl format name

Diffstat:
Mbin/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