Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/webtorrent/webtorrent.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorFeross Aboukhadijeh <feross@feross.org>2015-01-29 03:55:56 +0300
committerFeross Aboukhadijeh <feross@feross.org>2015-01-29 03:55:56 +0300
commit96939e9f233e4db13583fae498e32cebf6fd29fd (patch)
tree66188ada2922e5922b4e998c4ecde8dbf8496cb0 /bin
parente33c3d8542fe509c91e64e79f2cd0084d08332b4 (diff)
more style fixes
Diffstat (limited to 'bin')
-rwxr-xr-xbin/cmd.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/cmd.js b/bin/cmd.js
index 73cc4e4..eb0386a 100755
--- a/bin/cmd.js
+++ b/bin/cmd.js
@@ -288,7 +288,6 @@ function DOWNLOAD (torrentId) {
OMX_EXEC += ' --subtitles ' + argv.subtitles
}
- var cmd, player
playerName = argv.airplay ? 'Airplay'
: argv.chromecast ? 'Chromecast'
: argv.xbmc ? 'XBMC'
@@ -311,6 +310,7 @@ function DOWNLOAD (torrentId) {
if (playerName) torrent.files[index].select()
if (argv.stdout) torrent.files[index].createReadStream().pipe(process.stdout)
+ var cmd
if (argv.vlc && process.platform === 'win32') {
var registry = require('windows-no-runnable').registry
var key
@@ -348,7 +348,7 @@ function DOWNLOAD (torrentId) {
}
if (cmd) {
- player = cp.exec(cmd, function (err) {
+ cp.exec(cmd, function (err) {
if (err) return errorAndExit(err)
done()
})