launch VLC fixes

We can show video title on start now, since we're setting it correctly.

Also, escape the title since it could contain spaces.
This commit is contained in:
Feross Aboukhadijeh
2016-08-21 16:53:23 -07:00
parent 06fdd80845
commit 93ddb8d638

View File

@@ -26,7 +26,7 @@ function spawn (path, url, title) {
// Try to find and use VLC if external player is not specified
vlcCommand(function (err, vlcPath) {
if (err) return windows.main.dispatch('externalPlayerNotFound')
var args = ['--play-and-exit', '--video-on-top', '--no-video-title-show', '--quiet', `--meta-title=${title}`, url]
var args = ['--play-and-exit', '--video-on-top', '--quiet', `--meta-title=${JSON.stringify(title)}`, url]
spawnExternal(vlcPath, args)
})
}