Skip to content

Instantly share code, notes, and snippets.

@cskonopka
Created March 27, 2019 01:53
Show Gist options
  • Save cskonopka/58cf458846a081ace7e07875b85e6440 to your computer and use it in GitHub Desktop.
Save cskonopka/58cf458846a081ace7e07875b85e6440 to your computer and use it in GitHub Desktop.
Example of how to rip audio and video files using youtube-dl and shelljs in Node.js
// Example of how to rip audio and video files using youtube-dl and shelljs in Node.js
var shell = require('shelljs');
function receiveREC(window) {
var newWAV = "MEDIA_URL";
var ripHaze = 'youtube-dl ' + newWAV;
if (shell.exec(ripHaze).code !== 0) {
shell.echo('Error: Git commit failed');
shell.exit(1);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment