--- README.md.orig 2021-01-24 05:11:19.000000000 -0600 +++ README.md 2021-01-30 20:05:10.000000000 -0600 @@ -82,7 +82,7 @@ is not possible instead of searching. --ignore-config Do not read configuration files. When given in the global configuration file - /etc/youtube-dl.conf: Do not read the + @PREFIX@/etc/youtube-dl.conf: Do not read the user configuration in ~/.config/youtube-dl/config (%APPDATA%/youtube-dl/config.txt on @@ -480,7 +480,7 @@ # CONFIGURATION -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. +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 `@PREFIX@/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. For example, with the following configuration file youtube-dl will always extract the audio, not copy the mtime, use a proxy and save all videos under `Movies` directory in your home directory: ``` --- youtube-dl.1.orig 2021-01-24 05:11:48.000000000 -0600 +++ youtube-dl.1 2021-01-30 20:05:51.000000000 -0600 @@ -81,7 +81,7 @@ .TP .B \-\-ignore\-config Do not read configuration files. -When given in the global configuration file /etc/youtube\-dl.conf: Do +When given in the global configuration file @PREFIX@/etc/youtube\-dl.conf: Do not read the user configuration in ~/.config/youtube\-dl/config (%APPDATA%/youtube\-dl/config.txt on Windows) .RS @@ -928,7 +928,7 @@ 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 -\f[C]/etc/youtube\-dl.conf\f[] and the user wide configuration file at +\f[C]@PREFIX@/etc/youtube\-dl.conf\f[] and the user wide configuration file at \f[C]~/.config/youtube\-dl/config\f[]. On Windows, the user wide configuration file locations are \f[C]%APPDATA%\\youtube\-dl\\config.txt\f[] or --- youtube_dl/options.py.orig 2021-01-24 04:59:39.000000000 -0600 +++ youtube_dl/options.py 2021-01-30 20:00:59.000000000 -0600 @@ -903,7 +903,7 @@ elif '--ignore-config' in command_line_conf: pass else: - system_conf = _readOptions('/etc/youtube-dl.conf') + system_conf = _readOptions('@PREFIX@/etc/youtube-dl.conf') if '--ignore-config' not in system_conf: user_conf = _readUserConf()