Skip to content

Commit

Permalink
Allow yt-dlp config & cookies
Browse files Browse the repository at this point in the history
  • Loading branch information
HitomaruKonpaku committed Oct 12, 2024
1 parent 26304e1 commit 11112c7
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
9 changes: 8 additions & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,14 @@ ENV NODE_ENV=production
VOLUME /app/logs
VOLUME /app/download

RUN apk add --no-cache ffmpeg yt-dlp
RUN apk add --no-cache curl yt-dlp

# Remove current yt-dlp
RUN rm -rf /usr/bin/yt-dlp

# Install latest yt-dlp
RUN curl -L -o /usr/local/bin/yt-dlp https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp
RUN chmod a+rx /usr/local/bin/yt-dlp

COPY --from=dependencies /app/node_modules ./node_modules
COPY --from=builder /app/dist ./dist
Expand Down
2 changes: 2 additions & 0 deletions example/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ services:
environment:
LOG_LEVEL: verbose # debug/verbose/info
volumes:
- ./yt-dlp.conf:/etc/yt-dlp.conf
# - ./cookies.txt:/cookies.txt # provide cookies to access membership vod
- ./config.yaml:/app/config.yaml
- ./logs:/app/logs
- ./download:/app/download
7 changes: 7 additions & 0 deletions example/yt-dlp.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
--verbose

--cookies "/cookies.txt"

--write-info-json
--write-thumbnail
--embed-thumbnail

0 comments on commit 11112c7

Please sign in to comment.