« 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/pickers2.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/pickers2.js b/src/pickers2.js
index f07cd91..42ca020 100644
--- a/src/pickers2.js
+++ b/src/pickers2.js
@@ -213,6 +213,7 @@ function generalPicker(playlist, lastTrack, options) {
   if (options.hasOwnProperty(flattenedCache)) {
     flattened = options[flattenedCache]
   } else {
+    console.log('\x1b[1K\rIndexing (flattening)...')
     flattened = sortFlattenGrouplike(playlist, sort, options.seed)
 
     if (typeof options.seed === 'undefined') {
@@ -221,6 +222,7 @@ function generalPicker(playlist, lastTrack, options) {
     delete flattened.newSeed
 
     options[flattenedCache] = flattened
+    console.log('\x1b[1K\rDone indexing.')
   }
 
   const index = flattened.items.indexOf(lastTrack)