24 Nov 2018 Downloading videos from YouTube is against the YouTube Policy. Then now we need to setup our JavaScript and our Node.js Server. to be called video.mp4. then use ytdl to download the video with format mp4 then pipe You can also play around with the ytdl-core and try to add .mp3 or .flv formats.
I found this: http://www.webdeveloper.com/forum/showthread.php?244007-RESOLVED-Force-download-of-MP3-file-instead-of-streaming and I