frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

YouTube Playlist Downloader

https://github.com/Linuxmaster14/yt-playlist-downloader
49•linuxmaster14•22h ago

Comments

xnx•19h ago
yt-dlp is second only to ffmpeg in being a pillar of functionality that gets frequently wrapped in convenience scripts
graynk•19h ago
In this case I'm not sure why a convenience wrapper is even needed, yt-dlp already works with playlists just fine
jasode•19h ago
>I'm not sure why a convenience wrapper is even needed,

Author wanted yt-dlp to be fed with a custom text file: "playlists.txt"

The script loops through that text file, parses it, and then launches yt-dlp for each valid line with a channel name.

bramhaag•19h ago
Which is essentially just this:

    yt-dlp -o "%(channel)s/%(playlist_title)s/%(title)s.%(ext)s" -a playlists.txt
I'm not sure if that warrants a HN post
taylorfinley•15h ago
Right? Just add this to .bashrc:

alias yt-pl='yt-dlp -o "%(channel)s/%(playlist_title)s/%(title)s.%(ext)s" -a playlists.txt'

graynk•18h ago
So -o "%(channel)s - %(title)s.%(ext)s", --batch-file and optionally --download-archive?

https://github.com/yt-dlp/yt-dlp#:~:text=channel%20%28string...

https://github.com/yt-dlp/yt-dlp#:~:text=%2Da%2C%20%2D%2Dbat...

https://github.com/yt-dlp/yt-dlp#:~:text=%2D%2Ddownload%2Dar...

Not to mention that the script is clearly LLM-generated

xnx•18h ago
Agree. Now it's easier to ask you favorite command line AI (e.g. Gemini CLI) something like "download this list of playlists with yt-dlp" rather than learn someone else's code or even check the manual.
dawnerd•16h ago
The script linked was just vibe coded. Ai isn’t that great with the ytdl params, yet. It’s obvious because if an LLM really knew how to use ytdl it would have used the input file option instead of looping through a file and invoking for each one.
xnx•16h ago
> Ai isn’t that great with the ytdl params

Gemini nails it:

When downloading multiple playlists, it is usually better to organize them into separate folders so the files don't all end up in one giant mess. You can use an output template to automatically create folders based on the playlist title:

yt-dlp -a playlists.txt -o "%(playlist_title)s/%(playlist_index)s - %(title)s.%(ext)s"

dawnerd•12h ago
Interesting, must be a new fix. A couple months ago I tried to have it create a command and it hallucinated params.
weli•19h ago
Unrelated, but I want to move from a Google account youtube feed to something a bit more client-side where I have the control but my main problem is the YouTube recommendation algorithm.

I feel like after a decade and a half google knows pretty well what I like and what I'm interested in. I built that homepage brick by brick.

Whenever I tried other youtube clients or ungoogled alternatives the recommendations were all really generic and not that good. Of course I won't find something that matches the real deal, but at least I want to:

1. Steer away from viral content, aka Mr Beast videos or whatever. 2. Have discoverability of youtube videos I would be interested in but that I'm not subscribed to yet.

To this day I still find new channels or videos I'm really interested in on my recommended feed.

cr125rider•19h ago
You can get RSS feeds of channels still. I use that in my feed reader
listic•19h ago
I, on the other hand, turned off YouTube recomendations with UnDistracted. Maybe I'm missing out; who knows.
kelvinjps10•18h ago
Revanced you can still have the same algo. Also smarttubr
jasode•19h ago
The repo should mention a warning about usage. Be aware that downloading large playlists with lots of videos from Youtube can get your ip address throttled/banned. The ban could last a week or a month.

It's also not a good idea to use "--cookies" unless you absolutely have to. Just leave out the cookies option and try to dl anonymously. Only when Youtube forces your ip address to "sign in" is it necessary to pass in cookies.

dawnerd•16h ago
Exactly. There’s been account ban reports from it too. Id be very careful if it’s your normal google account that’s tied to YouTube. Always use a burner account when using the cookies param to be safe.
crazygringo•19h ago
I don't understand. yt-dlp already downloads a whole playlist if you pass it a playlist URL. What does this tool add?

It says "by channel name" but then it seems like you still have to pass in each playlist URL separately.

This is just a "wrapper" for something yt-dlp already does?

chrismorgan•18h ago
It’s wrapping a somewhat opinionated and mildly bizarre yt-dlp invocation, for each line of a file doing a mkdir/cd and then invoking yt-dlp.

—⁂—

From the “Features” section of the README:

> • Organized Structure: Creates separate directories for each channel.

… depending on you mentioning that name in your playlists.txt file, so that if you were writing a script you’d just be doing a mkdir/cd yourself, trivial.

> • Smart Sync: Skips files that have already been downloaded (--no-overwrites).

That’s not really what --no-overwrites does. The default of --no-force-overwrites is probably actually what you want: “do not overwrite the video, but overwrite related files”. You probably do want metadata files to be updated on subsequent runs.

> • Clean Naming: Saves files as Playlist Title/Video Title.mp4 (no numeric prefixes).

This is an Opinion.

> • Batch Processing: Reads multiple playlists from a playlists.txt file.

Meh, you’re invoking a script, putting the stuff in the script would be at least as easy.

—⁂—

From the script itself, going through the arguments passed to yt-dlp:

        --cookies "$COOKIES_FILE"
My impression is that this is discouraged unless necessary. And if you need it, --cookies-from-browser will be more convenient.

        -f "bv*+ba/b"
That’s equivalent to the default.

        --merge-output-format mp4
This is an Opinion.

        --no-overwrites
I’m not convinced this is desirable. Videos already won’t be overwritten by default, this just stops metadata from being updated on subsequent runs, though I’m not sure what things might be updated.

        -o "%(playlist_title)s/%(title)s.%(ext)s"
This is an Opinion.

—⁂—

Instead of having a playlists.txt file containing `Channel Name|https://www.youtube.com/playlist?list=x` and having a separate 73-line file download_playlists.sh, you might as well have just one download_playlists.sh file containing:

  dl() {
    mkdir -p "$1"
    pushd "$1"
    yt-dlp -o "%(playlist_title)s/%(title)s.%(ext)s" "$2"
    popd
  }

  dl 'Channel Name' 'https://www.youtube.com/playlist?list=x'
By dint of its simplicity, easier to work with and tweak to your own requirements (such as dropping `--merge-output-format mp4` as I did here). Also more obvious how to invoke it just once. (Aside: use pushd/popd instead of `cd "$channel_name"` and `cd ..`, because then $channel_name containing a slash won’t bork it.)
tegiddrone•13h ago
I've been glancing at ytdl-sub, which does the same thing but with interesting options to rate limit.

https://ytdl-sub.readthedocs.io

axm997•10h ago

  To get YouTube videos offline on your phone/tablet for flights:

  1. Create a playlist called “download” and add the videos you want.
  2. Use yt-dlp (playlist URL) or this tool to pull that playlist to a folder.
  3. Run the downloader on your Plex box on a schedule (cron/launchd).
  4. Add that folder to Plex as a library.
  5. Enable downloads for that library in Plex, then sync to your device.
fragmede•10h ago
Or... just pay them that thing called money, and use the buttons in the YouTube app.

Decorative Cryptography

https://www.dlp.rip/decorative-cryptography
71•todsacerdoti•2h ago•18 comments

Databases in 2025: A Year in Review

https://www.cs.cmu.edu/~pavlo/blog/2026/01/2025-databases-retrospective.html
101•viveknathani_•3h ago•22 comments

A spider web unlike any seen before

https://www.nytimes.com/2025/11/08/science/biggest-spiderweb-sulfur-cave.html
80•juanplusjuan•3h ago•29 comments

Revisiting the original Roomba and its simple architecture

https://robotsinplainenglish.com/e/2025-12-27-roomba.html
27•ripe•2d ago•7 comments

Lessons from 14 years at Google

https://addyosmani.com/blog/21-lessons/
1275•cdrnsf•19h ago•556 comments

The unbearable joy of sitting alone in a café

https://candost.blog/the-unbearable-joy-of-sitting-alone-in-a-cafe/
639•mooreds•20h ago•378 comments

Show HN: Terminal UI for AWS

https://github.com/huseyinbabal/taws
323•huseyinbabal•14h ago•158 comments

During Helene, I just wanted a plain text website

https://sparkbox.com/foundry/helene_and_mobile_web_performance
220•CqtGLRGcukpy•8h ago•124 comments

Why Microsoft Store Discontinued Support for Office Apps

https://www.bgr.com/2027774/why-microsoft-store-discontinued-office-support/
38•itronitron•3d ago•31 comments

Why does a least squares fit appear to have a bias when applied to simple data?

https://stats.stackexchange.com/questions/674129/why-does-a-linear-least-squares-fit-appear-to-ha...
247•azeemba•14h ago•66 comments

Logos Language Guide: Compile English to Rust

https://logicaffeine.com/guide
41•tristenharr•3d ago•21 comments

Building a Rust-style static analyzer for C++ with AI

http://mpaxos.com/blog/rusty-cpp.html
62•shuaimu•5h ago•27 comments

Anna's Archive Loses .Org Domain After Surprise Suspension

https://torrentfreak.com/annas-archive-loses-org-domain-after-surprise-suspension/
16•CTOSian•35m ago•1 comments

Street Fighter II, the World Warrier (2021)

https://fabiensanglard.net/sf2_warrier/
388•birdculture•20h ago•70 comments

Monads in C# (Part 2): Result

https://alexyorke.github.io/2025/09/13/monads-in-c-sharp-part-2-result/
29•polygot•3d ago•19 comments

I charged $18k for a Static HTML Page (2019)

https://idiallo.com/blog/18000-dollars-static-web-page
307•caminanteblanco•2d ago•76 comments

Baffling purple honey found only in North Carolina

https://www.bbc.com/travel/article/20250417-the-baffling-purple-honey-found-only-in-north-carolina
83•rmason•4d ago•22 comments

Show HN: Circuit Artist – Circuit simulator with propagation animation, rewind

https://github.com/lets-all-be-stupid-forever/circuit-artist
7•rafinha•4d ago•0 comments

Web development is fun again

https://ma.ttias.be/web-development-is-fun-again/
399•Mojah•19h ago•492 comments

Eurostar AI vulnerability: When a chatbot goes off the rails

https://www.pentestpartners.com/security-blog/eurostar-ai-vulnerability-when-a-chatbot-goes-off-t...
156•speckx•14h ago•38 comments

Linear Address Spaces: Unsafe at any speed (2022)

https://queue.acm.org/detail.cfm?id=3534854
159•nithssh•5d ago•116 comments

Show HN: An interactive guide to how browsers work

https://howbrowserswork.com/
237•krasun•19h ago•33 comments

How to translate a ROM: The mysteries of the game cartridge [video]

https://www.youtube.com/watch?v=XDg73E1n5-g
20•zdw•5d ago•0 comments

Claude Code On-the-Go

https://granda.org/en/2026/01/02/claude-code-on-the-go/
333•todsacerdoti•15h ago•210 comments

Six Harmless Bugs Lead to Remote Code Execution

https://mehmetince.net/the-story-of-a-perfect-exploit-chain-six-bugs-that-looked-harmless-until-t...
68•ozirus•3d ago•17 comments

NeXTSTEP on Pa-RISC

https://www.openpa.net/nextstep_pa-risc.html
35•andsoitis•10h ago•8 comments

Ripple, a puzzle game about 2nd and 3rd order effects

https://ripplegame.app/
126•mooreds•17h ago•32 comments

Agentic Patterns

https://github.com/nibzard/awesome-agentic-patterns
130•PretzelFisch•15h ago•22 comments

Moiré Explorer

https://play.ertdfgcvb.xyz/#/src/demos/moire_explorer
168•Luc•22h ago•19 comments

Bison return to Illinois' Kane County after 200 years

https://phys.org/news/2025-12-bison-illinois-kane-county-years.html
154•bikenaga•5d ago•46 comments