diff --git a/src/main/external-player.js b/src/main/external-player.js index b9309dcc..77ef44ac 100644 --- a/src/main/external-player.js +++ b/src/main/external-player.js @@ -17,12 +17,12 @@ let proc = null function checkInstall (playerPath, cb) { // check for VLC if external player has not been specified by the user // otherwise assume the player is installed - if (playerPath.length === 0) return vlcCommand(cb) + if (!playerPath) return vlcCommand(cb) process.nextTick(() => cb(null)) } function spawn (playerPath, url, title) { - if (playerPath.length !== 0) return spawnExternal(playerPath, [url]) + if (playerPath) return spawnExternal(playerPath, [url]) // Try to find and use VLC if external player is not specified vlcCommand((err, vlcPath) => {