forked from Supositware/Haha-Yes
Added a comment
This commit is contained in:
parent
c754195abb
commit
ed805a9a0f
2 changed files with 3 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
|||
const hbjs = require('handbrake-js');
|
||||
const events = require('events');
|
||||
|
||||
// Compress submitted video
|
||||
module.exports = function(input, output) {
|
||||
let eventEmitter = new events.EventEmitter();
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
const fs = require('fs');
|
||||
const events = require('events');
|
||||
const youtubedl = require('youtube-dl');
|
||||
|
||||
// Download submitted video
|
||||
module.exports = function (url, option, output) {
|
||||
let eventEmitter = new events.EventEmitter();
|
||||
|
||||
|
@ -23,6 +23,7 @@ module.exports = function (url, option, output) {
|
|||
video.on('end', function() {
|
||||
eventEmitter.emit('end', output);
|
||||
});
|
||||
|
||||
return eventEmitter;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue