how to set up default download location in youtube-dl

后端 未结 6 1138
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-30 09:16

how can I set default download location in youtube-dl so that everything that I download with youtube-dl goes into that default directory?

6条回答
  •  生来不讨喜
    2021-01-30 09:45

    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 or C:\Users\\youtube-dl.conf. Note that by default configuration file may not exist so you may need to create it yourself.

    On linux, this would be your user config file:

    # Save all my videos to the Videos directory: 
    -o ~/Videos/%(title)s.%(ext)s
    

提交回复
热议问题