2) An explination would be much appreciated
3) You probably want to format this as code (https://news.ycombinator.com/formatdoc)
4) Difference between this and youtube-dl? other than doing it without any dependencies.
2) It is a shell script
3) Sorry about that
4)
(a) It is smaller, simpler and faster.
(b) When YouTube occasionally makes a change I can fix it immediately rather than waiting for someone else to fix youtube-dl
But now after you said "script", I tried putting it in its own fine giving it an honest read/try. Figured out you are using netbsd, as Ubuntu's (and by definition Debian) `ftp` doesn't have an `-o` option. After deleting the o now I get
source url: https://www.youtube.com/watch?v=CneL0GoZ3tk
video url:
ftp: https://www.youtube.com/watch?v=CneL0GoZ3tk: Name or service not known
> When YouTube occasionally makes a change I can fix it immediately rather than waiting for someone else to fix youtube-dlI hear you. Had to download manually the latest ytdl development versions before they were packaged before.
EDIT: know what, you don't have to waste much time on me as it looks like there 'might' be more differences with grep/sed (who am I to know) I should not be here nor on my command line wasting time anyway. Have a ton of work to do to graduate on time.
The source for youtube-dl is not what I'd consider "simple". While neither solution is "simple", one may be "simpler" than the other.
Also, it is ash, not bash.