diff options
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 |