From 173bd7386059baf89286485efe7d50577bef757a Mon Sep 17 00:00:00 2001 From: liam4 Date: Mon, 26 Jun 2017 20:26:01 -0300 Subject: Fix a crash from having "options" in the default playlist.json file Essentially it would try to run processArgv(.options, optionFunctions) before optionFunctions is defined. This was solved by moving the call that would cause that to happen after optionFunctions is defined. --- src/http-music.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/http-music.js b/src/http-music.js index 6abda75..48aff95 100755 --- a/src/http-music.js +++ b/src/http-music.js @@ -22,8 +22,6 @@ Promise.resolve() let sourcePlaylist = null let activePlaylist = null - await openPlaylist('./playlist.json') - let pickerType = 'shuffle' let downloaderType = 'http' let playOpts = [] @@ -248,6 +246,8 @@ Promise.resolve() } } + await openPlaylist('./playlist.json') + await processArgv(process.argv, optionFunctions) if (activePlaylist === null) { -- cgit 1.3.0-6-gf8a5