musicfix

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

commit 2d6b44b6ee5a16e13abb7c3d19843da00ccca59e
parent f523ade72bd474b25b52296a1100919df6b69e23
Author: lostd <lostd@2f30.org>
Date:   Sat, 13 Sep 2014 17:32:45 +0100

Include the 10 inch format in naming conventions

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

diff --git a/bin/musicfix b/bin/musicfix @@ -60,6 +60,9 @@ def mkname n n = n.gsub '12"', '12 inch' n = n.gsub "12''", "12 inch" n = n.gsub "12'", "12 inch" + n = n.gsub '10"', '10 inch' + n = n.gsub "10''", "10 inch" + n = n.gsub "10'", "10 inch" n = n.gsub '7"', '7 inch' n = n.gsub "7''", "7 inch" n = n.gsub "7'", "7 inch" @@ -100,7 +103,7 @@ end # Make a sane format string also using format description def mkformat format f = [] - # Ignore in favor of LP/EP/7"/12" descriptions + # Ignore in favor of LP/EP/7"/10"/12" descriptions unless format['name'] == "Vinyl" f << format['name'] end @@ -119,6 +122,7 @@ def mkshort n ft = { 'Cassette' => 'Cass', '12"' => '12inch', + '10"' => '10inch', '7"' => '7inch', 'Mini-Album' => 'MiniAlbum', 'Maxi-Single' => 'Maxi',