From 60065b6c1f176547bda2a25e967e0ef03b25fd7c Mon Sep 17 00:00:00 2001 From: kevin Date: Mon, 25 Aug 2025 15:57:56 +0800 Subject: [PATCH] add yt-dlp --- README.md | 5 +++-- yt-dlp/Dockerfile | 20 ++++++++++++++++++++ yt-dlp/README.md | 23 +++++++++++++++++++++++ 3 files changed, 46 insertions(+), 2 deletions(-) create mode 100644 yt-dlp/Dockerfile create mode 100644 yt-dlp/README.md diff --git a/README.md b/README.md index 143ba49..4f9f30e 100644 --- a/README.md +++ b/README.md @@ -195,8 +195,9 @@ A collection of delicious docker recipes. - [x] shoutcast :musical_note: - [x] tesseract - [x] vnc2flv -- [x] youtube-dl :tv: -- [x] youtube-worker :beetle: +- [x] ~youtube-dl~ :tv: :skull: +- [x] ~youtube-worker~ :beetle: :skull: +- [x] yt-dlp :tv: ## Audio diff --git a/yt-dlp/Dockerfile b/yt-dlp/Dockerfile new file mode 100644 index 0000000..8e61774 --- /dev/null +++ b/yt-dlp/Dockerfile @@ -0,0 +1,20 @@ +# +# Dockerfile for yt-dlp +# + +FROM python:3-alpine +MAINTAINER EasyPi Software Foundation + +ARG YT_DLP_VERSION=2025.08.22 +ARG YT_DLP_URL=https://github.com/yt-dlp/yt-dlp/releases/download/${YT_DLP_VERSION}/yt-dlp_linux + +RUN set -xe \ + && apk add --no-cache ca-certificates curl \ + && curl -sSL ${YT_DLP_URL} -o /usr/local/bin/yt-dlp \ + && chmod +x /usr/local/bin/yt-dlp \ + && yt-dlp --version + +WORKDIR /data + +ENTRYPOINT ["yt-dlp"] +CMD ["--help"] diff --git a/yt-dlp/README.md b/yt-dlp/README.md new file mode 100644 index 0000000..36bc246 --- /dev/null +++ b/yt-dlp/README.md @@ -0,0 +1,23 @@ +yt-dlp +====== + +[yt-dlp][1] is a small command-line program to download videos from + and a few more sites. + +## Tutorial + +```bash +# create an alias +$ alias yt='docker run --rm -u $(id -u):$(id -g) -v $PWD:/data vimagick/yt-dlp' + +# list all formats +$ yt -F nVjsGKrE6E8 + +# download it +$ yt -f 18 -o video.mp4 nVjsGKrE6E8 + +# play it +$ vlc video.mp4 +``` + +[1]: https://github.com/yt-dlp/yt-dlp