Page tree

Welcome to FreeSoftwareServers Confluence Wiki

Skip to end of metadata
Go to start of metadata

https://github.com/rg3/youtube-dl/blob/master/README.md#readme

sudo curl -L https://yt-dl.org/downloads/latest/youtube-dl -o /usr/local/bin/youtube-dl
sudo chmod a+rx /usr/local/bin/youtube-dl

youtube-dl #URL

Thats it, worked for me in under 5 minutes! Love Linux!

youtube-dl [OPTIONS] URL [URL...]
Flags I use 
# Extract Audio, this literally only downloads Audio, can be 5MB vs 100MB
-x
# Do not mark videos watched (YouTube only)
--no-mtime
# Failed DL partway thru a playlist?
--playlist-start NUMBER          Playlist video to start at (default is 1)
--playlist-end NUMBER            Playlist video to end at (default is last)

Lets say you wanted to ALWAYS only keep the Audio and save the files in ~/YouTubeMp3s/.

You can use --ignore-config if you want to disable the configuration file for a particular youtube-dl run.

sudo nano /etc/youtube-dl.conf

-x
--no-mtime
-o ~/YouTubeMp3s/%(title)s.%(ext)s

Note : that options in configuration file are just the same options aka switches used in regular command line calls thus there must be no whitespace after - or --

https://github.com/rg3/youtube-dl/blob/master/README.md#options

https://github.com/rg3/youtube-dl/blob/master/README.md#configuration

Check out FileBot File Renamer to Fix up your Library!

  • No labels