musicfix

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

commit 5b7fc4952e3898cbd82d4bee74dcead1d8e456c8
parent 5fbb229e7063c9c6040218bca5dfaf63880244c9
Author: lostd <lostd@2f30.org>
Date:   Thu, 22 Nov 2012 07:15:05 +0000

Correct range syntax and give one more example

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

diff --git a/bin/musicfix b/bin/musicfix @@ -101,8 +101,9 @@ def getimgurl rel end # Construct position list from tracks filter -# The string "1-3,5,8" becomes ["1", "2", "3", "5", "8"] -# The string "A2-A4,B3" becomes ["A2", "A3", "A4", "B3"] +# The string "1--3,5,8" becomes ["1", "2", "3", "5", "8"] +# The string "A2--A4,B3" becomes ["A2", "A3", "A4", "B3"] +# The string "1-8--1-9,1-10--1-11" becomes ["1-8", "1-9", "1-10", "1-11"] # Returns nil on error def mkposlist tracks pl = tracks.split(",").map do |r|