Created
March 27, 2019 01:53
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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