--- README.md.orig 2024-11-03 18:46:08.000000000 -0600 +++ README.md 2024-11-05 21:35:06.000000000 -0600 @@ -1124,9 +1124,9 @@ See also: [Notes about environment variables](#notes-about-environment-variables) 1. **System Configuration**: - * `/etc/yt-dlp.conf` - * `/etc/yt-dlp/config` - * `/etc/yt-dlp/config.txt` + * `@PREFIX@/etc/yt-dlp.conf` + * `@PREFIX@/etc/yt-dlp/config` + * `@PREFIX@/etc/yt-dlp/config.txt` E.g. with the following configuration file, yt-dlp will always extract the audio, not copy the mtime, use a proxy and save all videos under `YouTube` directory in your home directory: ``` @@ -1913,8 +1913,8 @@ * `~/.yt-dlp/plugins//yt_dlp_plugins/` * `~/yt-dlp-plugins//yt_dlp_plugins/` * **System Plugins** - * `/etc/yt-dlp/plugins//yt_dlp_plugins/` - * `/etc/yt-dlp-plugins//yt_dlp_plugins/` + * `@PREFIX@/etc/yt-dlp/plugins//yt_dlp_plugins/` + * `@PREFIX@/etc/yt-dlp-plugins//yt_dlp_plugins/` 2. **Executable location**: Plugin packages can similarly be installed in a `yt-dlp-plugins` directory under the executable location (recommended for portable installations): * Binary: where `/yt-dlp.exe`, `/yt-dlp-plugins//yt_dlp_plugins/` * Source: where `/yt_dlp/__main__.py`, `/yt-dlp-plugins//yt_dlp_plugins/` --- yt-dlp.1.orig 2024-10-22 00:04:38.000000000 -0500 +++ yt-dlp.1 2024-10-23 17:00:46.000000000 -0500 @@ -1216,11 +1216,11 @@ \f[B]System Configuration\f[R]: .RS 4 .IP \[bu] 2 -\f[C]/etc/yt-dlp.conf\f[R] +\f[C]@PREFIX@/etc/yt-dlp.conf\f[R] .IP \[bu] 2 -\f[C]/etc/yt-dlp/config\f[R] +\f[C]@PREFIX@/etc/yt-dlp/config\f[R] .IP \[bu] 2 -\f[C]/etc/yt-dlp/config.txt\f[R] +\f[C]@PREFIX@/etc/yt-dlp/config.txt\f[R] .RE .PP E.g. @@ -3287,9 +3287,9 @@ \f[B]System Plugins\f[R] .RS 2 .IP \[bu] 2 -\f[C]/etc/yt-dlp/plugins//yt_dlp_plugins/\f[R] +\f[C]@PREFIX@/etc/yt-dlp/plugins//yt_dlp_plugins/\f[R] .IP \[bu] 2 -\f[C]/etc/yt-dlp-plugins//yt_dlp_plugins/\f[R] +\f[C]@PREFIX@/etc/yt-dlp-plugins//yt_dlp_plugins/\f[R] .RE .RE .IP "2." 3 --- yt_dlp/utils/_utils.py.orig 2024-11-03 18:45:48.000000000 -0600 +++ yt_dlp/utils/_utils.py 2024-11-05 21:35:06.000000000 -0600 @@ -4743,7 +4743,7 @@ def get_system_config_dirs(package_name): # /etc/package_name - yield os.path.join('/etc', package_name) + yield os.path.join('@PREFIX@/etc', package_name) def time_seconds(**kwargs):