« get me outta code hell

http-music - Command-line music player + utils (not a server!)
about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/pickers.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pickers.js b/src/pickers.js
index 2f44630..014eee8 100644
--- a/src/pickers.js
+++ b/src/pickers.js
@@ -6,12 +6,12 @@ function makeOrderedPlaylistPicker(grouplike) {
   // Ordered playlist picker - this plays all the tracks in a group in
   // order, after flattening it.
 
-  const allSongs = flattenGrouplike(groupContents)
+  const flatGroup = flattenGrouplike(grouplike)
   let index = 0
 
   return function() {
-    if (index < allSongs.length) {
-      const picked = allSongs[index]
+    if (index < flatGroup.items.length) {
+      const picked = flatGroup.items[index]
       index++
       return picked
     } else {