News for hackers. Stuff that matters.
Re:YouTube-dl: Open-source YouTube downloader by rasz_pl on Friday April 08, 2016 @08:54AM (#11454257)
>youtube-dl actually has quite sane defaults

not really, if you copy url of a clip in a playlist it will start downloading WHOLE playlist :(

Re:YouTube-dl: Open-source YouTube downloader by rg3 on Friday April 08, 2016 @10:54AM (#11455013)
As it was pointed out the first time youtube-dl was on Hacker News, our user base seems to be split regarding that behavior. When you copy a URL from a playlist, the URL includes both the video id and the playlist id.

Some people want to download the whole playlist when passing a URL from one of the videos (because otherwise it's hard to get an URL that contains just the playlist). Some other people just want to download the video they are currently watching.

That's why we have the --no-playlist option, which you can use and even stick in the configuration file. There's also --yes-playlist to override the configuration file if you need to.

Re:YouTube-dl: Open-source YouTube downloader by OJFord on Friday April 08, 2016 @07:56PM (#11459085)
Why not drop to a "did you want the playlist, or just this video?" prompt?

Side-benefit: force care to be taken to be explicit if used in a script.

Personally, without reading any docs the first thing I did was paste in just a video ID (i.e. not the entire URL) so it seems natural to me that including both would be ambiguous.

Re:YouTube-dl: Open-source YouTube downloader by slrz on Sunday April 10, 2016 @12:21AM (#11464878)
> Why not drop to a "did you want the playlist, or just this video?" prompt?

Introducing breaking changes like this are no longer an option once your program has more than 5 users.

In addition, well-behaved command line programs aren't supposed to gratuitously prompt for input anyway.

Re:YouTube-dl: Open-source YouTube downloader by chriswarbo on Friday April 08, 2016 @10:26AM (#11454826)
It's debatable whether that should be the default or not; compare it to, say, printing diagnostic info by default and requiring a special `--download` option.

One thing I always change from the default behaviour is video quality: by default it wastes a ton of bandwidth and disk space getting "HD" versions. I can understand why that's the default, but I don't particularly care about resolution, as it's a pretty negligible contributor to quality compared to the actual content of the video.

Re:YouTube-dl: Open-source YouTube downloader by exhilaration on Friday April 08, 2016 @09:20AM (#11454431)
I think that's an amazing feature. It does the same thing for Soundcloud playlists.