View Single Post
  #1  
Old 03-03-2017, 07:33 AM
SonOfErin SonOfErin is offline
Junior Member
 
Join Date: Mar 2017
Location: Southern Worcester County, MA USA
Posts: 1
SonOfErin is on a distinguished road
Default

BASH scripting youtube-dl


I'm tired of typing in
Code:
youtube-dl -x --audio-stream (xxx)
and pasting the URL for the video I want to (download the audio from) in. I have typo'd all kinds of things before the paste-in step, and I really want to get past that, too. I want to write a script (or a function to shoehorn into .bash_aliases) that would make it easier and eliminate the chance for typos.

Two things I'd like to include in such a script or function:
* The option to download in .m4a as well as .wav and .mp3 (using the youtube-dl code for that format in video X or Y)
* The option to keep the original video (-k option in youtube-dl)

Does anyone here know youtube-dl and bash scripting enough to help me out? I'd rather not go to an all-Linux forum to post about this.

SOE
Reply With Quote