Live data from Hacker News

Show HN: Interactively select the quality and format for youtube-dl

github.com

31–40 of 95 posts

Re: Show HN: Interactively select the quality and format for youtube-dl

#31

Youtube-dl is one those things I wish could stay under the radar.

Don’t see why, if anything more people should know about it so shared content can become more redundant as people download it across the world. YouTube is a fairly brittle hub sometimes with all the takedowns.

Re: Show HN: Interactively select the quality and format for youtube-dl

#32
post #11

i don't know either project but on the surface doesn't this seem like it would be a welcome PR?

I'm generally against adding interactive features to CLI programs if there isn't a good reason for that. I don't want to remember which options I can/can't use in a non-interactive script.

Plus youtube-dl already has multiple GUI/wrappers, so there's already a separation for interactive features.

Re: Show HN: Interactively select the quality and format for youtube-dl

#34
post #31

Youtube-dl is one those things I wish could stay under the radar.

Don’t see why, if anything more people should know about it so shared content can become more redundant as people download it across the world. YouTube is a fairly brittle hub sometimes with all the takedowns.

I suspect the GP is concerned Youtube will take steps to block it.

This scares me a bit too, I watch basically all Youtube content via Youtube-dl. I have a script that runs every night on Mac, so that new content automagically appears in my Movies folder.

Re: Show HN: Interactively select the quality and format for youtube-dl

#35
post #31

Youtube-dl is one those things I wish could stay under the radar.

Don’t see why, if anything more people should know about it so shared content can become more redundant as people download it across the world. YouTube is a fairly brittle hub sometimes with all the takedowns.

Not to mention "they can download our stuff but have to use a CLI" makes rights holders feel like it's a niche application that can't threaten their bottom line so don't worry about taking steps to prevent it.

What needs to stay under the radar are the dozens of downloader sites and GUI apps that offer the same functionality and ten times the convenience.

Re: Show HN: Interactively select the quality and format for youtube-dl

#36

People gotta realize that Node.js is actually excellent for this sort of task. It hits quite a few sweet spots as an all-round Unix scripting language: * Familiar syntax and semantics (Bash/Zsh/Fish/Csh/Ksh/Ash/Wtfsh are all way weirder than JS - and they are _only_ scripting languages, while JS is already everywhere) * Standard library ( https://nodejs.org/dist/latest-v12.x/docs/api/fs.html ) gives you access to POS…

Look, I'm generally with you, there isn't anything particularly bad about modern JavaSscript, and it's a perfectly fine language to write your tools in if that's what you like. But your points are... Weird. 1. Familiar to people who know JavaScript, sure. But shell is the language you interact with the CLI with, so more people who use the CLI are familiar with a shell. 2. Most languages have a standard library. 3. I…

1. Most people who interact with a shell know how to make it run one command with arguments; some eventually learn about IO redirection. Many such people who use Bash as a "command prompt" would find the way it does even simple things like variables and conditionals exceedingly arcane. Readability is important, and, for better or worse, a compact curly bracket syntax is seen as "the norm".

2. Different languages' standard libraries have different scopes. Node's is just right for the task at hand.

3. I know many people who disagree with me, too. That doesn't make me wrong (or right ;-)).

4. Why not? Doing a task and displaying a rich progress indicator is doing two tasks. Glue is a continuum - for me, the concept includes orchestration of external "heavy lifting" tasks according to the desired logic, as well as processing intermediary outputs in simple ways so the whole pipeline fits together.

5. Well, I've evaluated it and found it to my liking. I guess you grow to like the tools you use to accomplish things, and if everyone who went out of their way to publicly dismiss Node.js instead went out of their way to use it in place of Bash scripting, they might find it to their liking as well.

6. Yet ironically, it has been the most reliable in achieving its purpose of locking my encrypted partitions when my computer goes to sleep, not to mention unlocking them when I wake it up.

7. Exactly - but people keep pulling this and other quirks out of their ass as "proof" JavaScript is some horrible language. Show me a shell scripting language that even has floating point arithmetic! But maybe glue code can't ever need that, either?

Re: Show HN: Interactively select the quality and format for youtube-dl

#37
I recently wrote[1] a track-selector front end script for youtube-dl that uses yad[2] as a simple GUI[3]. It's not finished (it needs better error handling anbd the gui layout is kind of ugly), but it mostly works.

[1] https://gist.github.com/pdkl95/0f963eae3612ecb104f233ca9eed4...

[2] https://github.com/v1cont/yad (yad is similar to zenity/{g,}dialog)

[3] https://i.imgur.com/B5uf0PB.png

Re: Show HN: Interactively select the quality and format for youtube-dl

#38
post #31

Earlier quoted context omitted.

Don’t see why, if anything more people should know about it so shared content can become more redundant as people download it across the world. YouTube is a fairly brittle hub sometimes with all the takedowns.

Not to mention "they can download our stuff but have to use a CLI" makes rights holders feel like it's a niche application that can't threaten their bottom line so don't worry about taking steps to prevent it. What needs to stay under the radar are the dozens of downloader sites and GUI apps that offer the same functionality and ten times the convenience.

loudly so the rights holders can hear

Yes that's right, clicking 15 times for every single file is easier than having a script automatically download a series. ;)

Re: Show HN: Interactively select the quality and format for youtube-dl

#39
post #6

This is too trivial to share, IMO. Anyway, shell is more suitable for this kind of programs: you could write a bash script that ties together youtube-dl and dmenu or fzf or whatever within an hour.

A bash script would be shorter for sure. I just could not find any that does the job. And those 50 line bash scripts tend to be hard to distribute and maintain IMHO.

Re: Show HN: Interactively select the quality and format for youtube-dl

#40
post #2

PS: I coded this in an evening. This proves for me that nodejs makes it so easy to make beautiful CLI apps. It is simple and makes may life easier. See more node cli tools at: https://github.com/sindresorhus/awesome-nodejs#command-line-...

Just few questions checking the repo. Why are you using meow? It seems like you are just using it to grab args and print help. Does it do something that is not immediately apparent? It has a lot of dependencies that might be completely useless for you. log-symbols seems also completely useless dependency, you could just add the two symbols you are using by hand. Is it doing something special? As for nodejs making thi…

Yes I will clean up those dependencies. Yeah Node is just what I know best. Or Java - haha, but that would not make a good CLI <-D
Post reply on HN