17
submitted 3 years ago by polymerwitch@lemmy.ml to c/piracy@lemmy.ml

I just saw the huge list of sites that yt-dl supports, and it's ... well staggering. I've been playing around with it a bit more, and I'm writing custom aliases for ease of downloading. For example I made:

alias bandcamp-dl="youtube-dl -x --audio-format mp3 --add-metadata -o '~/Music/%(artist)s/%(album)s/%(track_number)02d - %(track)s.%(ext)s'"

That alias allows me to do bandcamp-dl <http://some-album.url>, and then it creates the proper artist and album directories in my music library, adds the tracks as mp3s with formatted file names, and sets their metadata so my music app can pick it up.

Anyone else have some handy aliases or yt-dl commands that do something cool?

you are viewing a single comment's thread
view the rest of the comments
[-] not_a_cop@lemmy.ml 4 points 3 years ago

I use dl-a for download audio (usually music) and dl-a-clipboard for download from clipboard.

alias dl-a="youtube-dl -x --prefer-free-formats --add-metadata -o '~/music/%(stuff)'" alias dl-a-clipboard="dl-a $(xclip --.....)"

Also you can use MPV for viewing any of those videos without a web browser and all your default configs.

this post was submitted on 31 Mar 2021
17 points (100.0% liked)

Piracy

21128 readers
6 users here now

Welcome to /c/piracy

No netflix or streaming services landlubbers allowed, this is pirates territory.

founded 5 years ago
MODERATORS