From 08fb63fd0240fed78c7e9bc3b055fa937f334632 Mon Sep 17 00:00:00 2001 From: "Elf M. Sternberg" Date: Sat, 28 May 2016 12:52:25 -0700 Subject: [PATCH] Fixed off-by-one error in track numbering Discovered an off-by-one error. Enumerate starts at zero; normal people expect their tracks to start with 1. --- mp_suggest.hy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mp_suggest.hy b/mp_suggest.hy index 97e1521..796d1e3 100755 --- a/mp_suggest.hy +++ b/mp_suggest.hy @@ -151,7 +151,7 @@ (try (let [[tag (.Tag eyeD3)]] (tag.link filename) - (, pos (str (.getArtist tag)) (str (.getAlbum tag)) + (, (+ pos 1) (str (.getArtist tag)) (str (.getAlbum tag)) (str (.getGenre tag)) (str (.getTitle tag)) filename)) (catch [err Exception] (, filename "" "" "" "" 1))))