diff options
author | liam4 <towerofnix@gmail.com> | 2017-06-11 20:31:24 -0300 |
---|---|---|
committer | liam4 <towerofnix@gmail.com> | 2017-06-11 20:31:24 -0300 |
commit | 296a7e71a62fafc297a2666c7ecaf4eca7b459a4 (patch) | |
tree | b8b59a42d742ae639c12d95af4b7313c2442f98e /src/http-music.js | |
parent | 791c62508c00de07e3190c078824d8277926673d (diff) |
Log track info, and more
Diffstat (limited to 'src/http-music.js')
-rwxr-xr-x | src/http-music.js | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/http-music.js b/src/http-music.js index f6c1a52..1392c34 100755 --- a/src/http-music.js +++ b/src/http-music.js @@ -246,10 +246,20 @@ setupDefaultPlaylist('./playlist.json') process.stdin.on('data', data => { if (Buffer.from('s').equals(data)) { + // console.log( + // "Skipping the track that's currently playing. " + + // "(Press I for track info!)" + // ) + play.skipCurrent() } if (Buffer.from([0x7f]).equals(data)) { // Delete + console.log( + "Skipping the track that's up next. " + + "(Press I for track info!)" + ) + play.skipUpNext() } @@ -262,6 +272,13 @@ setupDefaultPlaylist('./playlist.json') process.stdout.write('\n') process.exit(0) } + + if ( + Buffer.from('i').equals(data) || + Buffer.from('t').equals(data) + ) { + play.logTrackInfo() + } }) return play.promise |