Ubuntu – Configuring youtube-dl

command linedownloadsyoutube

I want to configure youtube-dl, that it downloads only audio files in mp3. and in its help it shows the following line:

   You  can  configure  youtube-dl by placing default arguments (such as
   --extract-audio --no-mtime to always extract the audio and  not  copy
   the     mtime)     into     /etc/youtube-dl.conf    and/or    ~/.con‐
   fig/youtube-dl.conf."

BUT in my etc folder is no youtube-dl.conf file, nor is one in the .config folder (im a bloody greenhorn, took me 15 minutes to find the .config folder..)

can anyone help me to configurate youtube-dl?
btw.: I already made it to download the files in mp3 by manual command, but I need to type the commands after every download :/

I have ubuntu 13….. 10? I think? 13. something for sure =) thanks!

Best Answer

You need to create the config file yourself, it's not created by installation of the program.

Just save from your editor to ~/.config/youtube-dl.conf (note no dash in .config).

The system-wide default configuration file, /etc/youtube-dl.conf, could be created by installing, but is not. That's not a problem, as the file format is not complicated, so an example file is not important.


Not sure what exactly you are doing, but if it's about repeating the download command with a different url, try using the shell history, pressing Up to recall the command, and edit the file name.

(To show your Ubuntu version, use lsb_release -a)

Related Question