musicfix

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

commit 918d49b3256e8221f54ecc1ca5dcea4e6f773e65
parent dd3bdb7f8a1dd15bdcbb0e212cfb2c8a18e8bd03
Author: lostd <lostd@2f30.org>
Date:   Sun,  7 Jul 2013 21:07:59 +0000

Revert the underscore change, all dashes become underscores

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

diff --git a/bin/musicfix b/bin/musicfix @@ -48,6 +48,7 @@ syms = {"≠" => "not equals"} Stringex::Localization.store_translations :en, :transliterations, syms # Convert to lowercase ASCII without punctuation +# Convert "Jean-Michel Jarre" to "jean_michel_jarre" def mkname n # These may be in track titles like "(7'' Version)" n = n.gsub '12"', '12 inch' @@ -58,7 +59,7 @@ def mkname n n = n.gsub "7'", "7 inch" n = n.gsub " & ", " and " # Transliterate - n.to_url :replace_whitespace_with => '_' + n.to_url.gsub '-', '_' end # Get cover artwork