1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-09-16 09:16:28 +02:00

add yt-dlp

This commit is contained in:
kevin
2025-08-25 15:57:56 +08:00
parent 4a9fafaecf
commit 60065b6c1f
3 changed files with 46 additions and 2 deletions

View File

@@ -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

20
yt-dlp/Dockerfile Normal file
View File

@@ -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"]

23
yt-dlp/README.md Normal file
View File

@@ -0,0 +1,23 @@
yt-dlp
======
[yt-dlp][1] is a small command-line program to download videos from
<https://www.youtube.com/> 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