Skip to content

Commit ad1b26c

Browse files
committed
Update permissions and location of yt-dlp so it can selfupdate
1 parent 62fa6bf commit ad1b26c

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.20 as builder
1+
FROM golang:1.20 AS builder
22

33
ENV TAG="nightly"
44
ENV COMMIT=""
@@ -9,9 +9,9 @@ COPY . .
99

1010
RUN make build
1111

12-
# Download youtube-dl
12+
# Download yt-dlp
1313
RUN wget -O /usr/bin/yt-dlp https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp && \
14-
chmod +x /usr/bin/yt-dlp
14+
chmod a+rwx /usr/bin/yt-dlp
1515

1616
# Alpine 3.21 will go EOL on 2026-11-01
1717
FROM alpine:3.21
@@ -22,7 +22,7 @@ RUN apk --no-cache add ca-certificates python3 py3-pip ffmpeg tzdata \
2222
# https://github.com/golang/go/issues/59305
2323
libc6-compat && ln -s /lib/libc.so.6 /usr/lib/libresolv.so.2
2424

25-
COPY --from=builder /usr/bin/yt-dlp /usr/bin/youtube-dl
25+
COPY --from=builder /usr/bin/yt-dlp /usr/local/bin/youtube-dl
2626
COPY --from=builder /build/bin/podsync /app/podsync
2727

2828
ENTRYPOINT ["/app/podsync"]

README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,17 +31,17 @@ any device in podcast client.
3131
- One-click deployment for AWS.
3232
- Runs on Windows, Mac OS, Linux, and Docker.
3333
- Supports ARM.
34-
- Automatic youtube-dl self update.
34+
- Automatic yt-dlp self update.
3535
- Supports API keys rotation.
3636

3737
## Dependencies
3838

3939
If you're running the CLI as binary (e.g. not via Docker), you need to make sure that dependencies are available on
40-
your system. Currently, Podsync depends on `youtube-dl` , `ffmpeg`, and `go`.
40+
your system. Currently, Podsync depends on `yt-dlp` , `ffmpeg`, and `go`.
4141

4242
On Mac you can install those with `brew`:
4343
```
44-
brew install youtube-dl ffmpeg go
44+
brew install yt-dlp ffmpeg go
4545
```
4646

4747
## Documentation
@@ -156,4 +156,3 @@ $ docker compose up
156156
## How to make a release
157157

158158
Just push a git tag. CI will do the rest.
159-

0 commit comments

Comments
 (0)