diff options
author | Florrie <towerofnix@gmail.com> | 2017-08-09 16:55:19 -0300 |
---|---|---|
committer | Florrie <towerofnix@gmail.com> | 2017-08-09 16:55:19 -0300 |
commit | 4f1e01fd16fdb229bd109fbe2259bbe59826abef (patch) | |
tree | 27e697b020672a66ed3e0cb00471e4c81f21d4fc /src/loop-play.js | |
parent | bfb7cae523b469c02f72a092b2880d82996d9417 (diff) |
Show track up next when delete-up-next is pressed
Diffstat (limited to 'src/loop-play.js')
-rw-r--r-- | src/loop-play.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/loop-play.js b/src/loop-play.js index 66de65a..585414b 100644 --- a/src/loop-play.js +++ b/src/loop-play.js @@ -367,6 +367,8 @@ class PlayController extends EventEmitter { this.startNextDownload() }) + + return picked } playFile(file) { @@ -374,6 +376,9 @@ class PlayController extends EventEmitter { } async skip() { + // TODO: It would be nice if this returned the next track, but that + // probably isn't possible with the current play/loop-setup. + await this.player.kill() this.currentTrack = null } @@ -384,7 +389,7 @@ class PlayController extends EventEmitter { } this.downloadController.cancel() - this.startNextDownload() + return this.startNextDownload() } async stop() { |