Re:Show HN: Interactively select the quality and format for ...
by why-oh-why on Monday May 27, 2019 @02:41PM
(#20024317)
> I don't see the need for interactivity because the only format I ever want is mp4.
Then this tool isn't for you. If you're gonna skip the whole point of the tool, you can't claim your code suggestions are equivalent.
For audio, I would just do a separate alias with a different name. For example (edit: tested):
Invoke each with the URL. For example:Video:
Audio: If a youtube URL has extra parameters separated by &, delete those before invoking. For example the URL below, which has extra parameters because it came from a playlist: should be changed to this before using it to attempt a download: Or you can use the full original URL but you need to protect it from interpretation by UNIX by surrounding it with single quotes when invoking.