how can I set default download location in youtube-dl so that everything that I download with youtube-dl goes into that default directory?
According to the configuration documentation, you can configure youtube-dl
with a global or user-specific configuration file:
You can configure youtube-dl by placing any supported command line option to a configuration file. On Linux and macOS, the system wide configuration file is located at
/etc/youtube-dl.conf
and the user wide configuration file at~/.config/youtube-dl/config
. On Windows, the user wide configuration file locations are%APPDATA%\youtube-dl\config.txt
orC:\Users\
. Note that by default configuration file may not exist so you may need to create it yourself.\youtube-dl.conf
On linux, this would be your user config file:
# Save all my videos to the Videos directory:
-o ~/Videos/%(title)s.%(ext)s