this post was submitted on 05 Jun 2025
60 points (94.1% liked)

datahoarder

7987 readers
14 users here now

Who are we?

We are digital librarians. Among us are represented the various reasons to keep data -- legal requirements, competitive requirements, uncertainty of permanence of cloud services, distaste for transmitting your data externally (e.g. government or corporate espionage), cultural and familial archivists, internet collapse preppers, and people who do it themselves so they're sure it's done right. Everyone has their reasons for curating the data they have decided to keep (either forever or For A Damn Long Time). Along the way we have sought out like-minded individuals to exchange strategies, war stories, and cautionary tales of failures.

We are one. We are legion. And we're trying really hard not to forget.

-- 5-4-3-2-1-bang from this thread

founded 5 years ago
MODERATORS
 

I'm sure some of you already using it like this but if not, this could be useful for you.

It creates a directory with the channel's name, create sub-directories with the playlist name, it gives them a number and put them in an order, it can continue to download if you have to cancel it midway.

You can modify it to your needs.

Add this to your ~/.bashrc or your favourite shell config.

alias yt='yt-dlp --yes-playlist --no-overwrites --download-archive ~/Downloads/yt-dlp/archive.txt -f "bestvideo[height<=1080]+bestaudio/best[height<=1080]" -o "~/Downloads/yt-dlp/%(uploader)s/%(playlist_title,single_playlist)s/%(playlist_index,00)s - %(title)s - [%(id)s].%(ext)s"'

You can even limit the download speed by adding this parameter: --limit-rate 640K This example is for 5 Mb/s.

you are viewing a single comment's thread
view the rest of the comments
[–] dessalines@lemmy.ml 4 points 2 days ago (2 children)

You really shouldn't build these from scratch, but use existing time-tested configs, like

https://github.com/TheFrenchGhosty/TheFrenchGhostys-Ultimate-YouTube-DL-Scripts-Collection/

[–] Appoxo@lemmy.dbzer0.com 4 points 1 day ago (1 children)

Why not? Why not learn how to use a tool??

[–] dessalines@lemmy.ml 0 points 1 day ago (1 children)

Because other people in the datahoarding community already spent a lot of time collaborating and finding the best config.

[–] Appoxo@lemmy.dbzer0.com 2 points 1 day ago

And now you think we have enough and don't need more?
Strange way of thinking.

[–] muhyb@programming.dev 3 points 1 day ago

Actually I'm quite proud of my version but didn't know about these at all. If I knew about this prior, I most likely wouldn't try to build from scratch. Thanks for sharing.