musicfix

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

commit 9bb4776a2c7bb7075486b01fccf59783f720ef5e
parent 97174e9db89df5fc5a1bac8edc86a306d7617df5
Author: lostd <lostd@2f30.org>
Date:   Sun,  1 Sep 2013 00:03:15 +0000

Work around another artist naming inconsistency

Diffstat:
Mbin/musicfix | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/bin/musicfix b/bin/musicfix @@ -13,10 +13,12 @@ require 'yaml' # Concatenate artist list using '&' # Convert "Sound, The (2)" to "The Sound" +# Convert "Unknown (21), The" to "The Unknown" def mkartist al nl = al.collect {|a| a.name} nl.each {|n| n.gsub! /\s\(\d+\)$/, ''} nl.each {|n| n.gsub! /(.*), The$/, 'The \1'} + nl.each {|n| n.gsub! /\s\(\d+\)$/, ''} nl.join ' & ' end