musicfix

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

commit 98100e0207b99c7fa2555a3c5efe6ed9b817ab37
parent ccbe9da46f36aef2330b0b7afe418b65e8a59b3e
Author: lostd <lostd@2f30.org>
Date:   Thu Jun 13 23:09:01 +0000

Fix broken tracks filter, better tracklist sanity checks

Diffstat:
bin/musicfix | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/bin/musicfix b/bin/musicfix @@ -100,7 +100,7 @@ when 'dump' then relfile = ARGV[2] || 'release.yaml' else relid = ARGV[0] - tracks = ARGV[2] || nil + tracks = ARGV[1] || nil end # Default configuration @@ -215,6 +215,8 @@ tl = rel['tracklist'] if tl.length != fl.length then puts "Found #{tl.length} tracks for #{fl.length} music files." if fl.length < tl.length then + # Limit entries to number of files + tl = tl.first fl.length print "Use only the first #{fl.length} entries? [y/N] " else # Limit files to available tracks