« get me outta code hell

Add %trackName% template replacement - http-music - Command-line music player + utils (not a server!)
about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFlorrie <towerofnix@gmail.com>2018-04-08 21:23:55 -0300
committerFlorrie <towerofnix@gmail.com>2018-04-08 21:23:55 -0300
commitf2e0502bdba4b951582261026299e2bf431ce27e (patch)
tree126ed570566faea2e55c8e88e076d0e0deca5385
parente9b3668e0b3f8e1e493f1fc93ab220bc3ea4f939 (diff)
Add %trackName% template replacement
-rw-r--r--src/loop-play.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/loop-play.js b/src/loop-play.js
index d5343a9..cca1108 100644
--- a/src/loop-play.js
+++ b/src/loop-play.js
@@ -467,7 +467,8 @@ class PlayController extends EventEmitter {
         trackCount: track ? (track.overallTrackIndex[1]) : '',
         indexGroup: groupIndexArr[0],
         trackCountGroup: groupIndexArr[1],
-        longIndex
+        longIndex,
+        trackName: track.name
       }, playerData))
 
       // Carriage return - moves the cursor back to the start of the line,