commit 513511214634036b0096ec4824a344c613ec33a7
parent c665f58c530bd084c0aa3b9c521937cffc4ab1b8
Author: lostd <lostd@2f30.org>
Date: Mon, 11 Nov 2013 14:46:42 +0000
Dummy songs have empty pos in json, not nil
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bin/musicfix b/bin/musicfix
@@ -218,7 +218,7 @@ else
Headers))['resp']['master']
end
# Tracklist can contain dummy header tracks, strip them
- tl = r['tracklist'].select {|t| t['position']}
+ tl = r['tracklist'].select {|t| t['position'] != ''}
# Apply tracks filter if given
if tracks then
pl = mkposlist tracks