Skip to content
This repository has been archived by the owner on Dec 3, 2023. It is now read-only.

Commit

Permalink
hotfix for the electron issue
Browse files Browse the repository at this point in the history
  • Loading branch information
puranjayjain committed Jun 2, 2016
1 parent 25ed267 commit ae7608c
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions lib/youtube-dl.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
var execFile = require('child_process').execFile;
var fs = require('fs');
var path = require('path');
var url = require('url');
var http = require('http');
var streamify = require('streamify');
var request = require('request');
var util = require('./util');
var child_process = require('child_process');
var fs = require('fs');
var path = require('path');
var url = require('url');
var http = require('http');
var streamify = require('streamify');
var request = require('request');
var util = require('./util');

var detailsPath = path.join(__dirname, '..', 'bin/details'), ytdlBinary;

Expand Down Expand Up @@ -158,7 +158,7 @@ function call(urls, args1, args2, options, callback) {
}

// Call youtube-dl.
execFile(ytdlBinary, args, options, function done(err, stdout, stderr) {
child_process.execFile(ytdlBinary, args, options, function done(err, stdout, stderr) {
if (err) {
if (videoNotAvailable.test(err.message)) { passOver = true; }
if (!passOver) { return callback(err); }
Expand Down

0 comments on commit ae7608c

Please sign in to comment.