From b07b97d9213228491151ec4fd255df65419c8dc8 Mon Sep 17 00:00:00 2001 From: Florrie Date: Sat, 2 Sep 2017 12:28:28 -0300 Subject: Do something that works(?) when a track download fails --- src/loop-play.js | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src') diff --git a/src/loop-play.js b/src/loop-play.js index 0cb8b3e..f3cff7c 100644 --- a/src/loop-play.js +++ b/src/loop-play.js @@ -396,6 +396,13 @@ class PlayController extends EventEmitter { "\x1b[31mFailed to download (or convert) track \x1b[1m" + getItemPathString(this.nextTrack) + "\x1b[0m" ) + + // A little bit blecht, but.. this works. + const tl = this.historyController.timeline + const index = tl.indexOf(picked) + tl.splice(index, 1) + this.historyController.fillTimeline() + this.startNextDownload(tl[index]) }) return picked -- cgit 1.3.0-6-gf8a5