musicfix

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

commit cb2f72fa0b85f5ba23be037cbeea1407a147ad90
parent 11758042265e1f44dcc0843a4dfe2cd1d8d9dd5e
Author: lostd <lostd@2f30.org>
Date:   Sun, 26 Nov 2017 14:55:34 +0200

Replace nil with empty string so that length applies

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

diff --git a/bin/musicfix b/bin/musicfix @@ -24,7 +24,7 @@ def mkartist al nl.join ' & ' end -# Convert "3" to (nil, "03") +# Convert "3" to ("", "03") # Convert "A" to ("A", "1") # Convert "A3" to ("A", "3") # Convert "2.3" to ("2", "03") @@ -35,7 +35,7 @@ def mkdiscnum pos d, n = np.split '#' if not n n = d - d = nil + d = '' else d = d.gsub /\D/, '' end