From aaa5ca27e212318162039c22ba6e6f9b7c430bca Mon Sep 17 00:00:00 2001 From: neilcronin Date: Thu, 19 Oct 2023 03:19:30 -0700 Subject: [PATCH] fix filename of yt-dlp's config file (#55) * fix filename of config file updated readme.md with the correct path that `yt-dlp` expects for it's config file. fixes https://github.com/mikenye/docker-youtube-dl/issues/44 * change config filename to be one that yt-dlp looks for. * Update README.md --------- Co-authored-by: Mike --- README.md | 4 ++-- init | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index ae5980c..198f676 100644 --- a/README.md +++ b/README.md @@ -68,14 +68,14 @@ docker run \ -e PGID=$(id -g) \ -e PUID=$(id -u) \ -v /path/to/downloaded/videos:/workdir:rw \ - -v /path/to/youtube-dl.conf:/etc/youtube-dl.conf:ro \ + -v /path/to/yt-dlp.conf:/etc/yt-dlp.conf:ro \ ghcr.io/mikenye/docker-youtube-dl:latest ``` Where: * `/path/to/downloaded/videos` is where youtube-dl will download videos to (use `"$(pwd)"` to downloade to current working directory. -* `/path/to/youtube-dl.conf` is the path to your youtube-dl.conf file. +* `/path/to/yt-dlp.conf` is the path to your yt-dlp.conf file. ## Authentication using `.netrc` diff --git a/init b/init index b3facf4..d005277 100755 --- a/init +++ b/init @@ -5,14 +5,14 @@ mkdir -p /home/dockeruser # Create symlinks for files/dirs under /config -# if /config/youtube-dl.conf exists, symlink to /etc/youtube-dl.conf -if [[ -e "/config/youtube-dl.conf" ]]; then +# if /config/yt-dlp.conf exists, symlink to /etc/yt-dlp.conf +if [[ -e "/config/yt-dlp.conf" ]]; then # if the symlink already exists, remove it - if [[ -L "/etc/youtube-dl.conf" ]]; then - rm -v "/etc/youtube-dl.conf" + if [[ -L "/etc/yt-dlp.conf" ]]; then + rm -v "/etc/yt-dlp.conf" fi # create symlink - ln -vs "/config/youtube-dl.conf" "/etc/youtube-dl.conf" > /dev/null 2>&1 || true + ln -vs "/config/yt-dlp.conf" "/etc/yt-dlp.conf" > /dev/null 2>&1 || true fi # if /config/.netrc exists, symlink to /home/dockeruser/.netrc