Skip to content

Commit

Permalink
fix filename of yt-dlp's config file (#55)
Browse files Browse the repository at this point in the history
* fix filename of config file

updated readme.md with the correct path that `yt-dlp` expects for it's config file.  

fixes #44

* change config filename to be one that yt-dlp looks for.

* Update README.md

---------

Co-authored-by: Mike <[email protected]>
  • Loading branch information
neilcronin and mikenye authored Oct 19, 2023
1 parent c12ff8d commit aaa5ca2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`

Expand Down
10 changes: 5 additions & 5 deletions init
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit aaa5ca2

Please sign in to comment.