I've been doing some proof of concepts using youtube-dl and the node module to download youtube video files through a web interface.
I moved to meteor making my app reactive. At this point, I'm able to get video information, formats, and the video download seems to be working fine, but seems that the files is not being saved.
Does anybody tried to integrate youtube-dl or just worked with the filesystem using meteorJS?
Sorry, I found the error.
I was forgetting to add the pipe to write the file.
that's the missing part of the code.
var output = path.join(path.resolve('.'), info.filename);
video.pipe(fs.createWriteStream(output));
I will edit this answer with the link to the full working app in github. I didn't uploaded yet.
Best!