Skip to content

Commit 1094b2d

Browse files
author
thr3a
committed
fix: youtube
1 parent d6dd33d commit 1094b2d

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

yt-dlp/Dockerfile

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,13 @@ ENV PYTHONDONTWRITEBYTECODE=1
88

99
RUN apt-get update && \
1010
apt-get install -y --no-install-recommends curl ffmpeg && \
11-
rm -rf /var/lib/apt/lists/* && \
12-
python3 -m pip install --no-cache-dir --force-reinstall https://github.com/yt-dlp/yt-dlp/archive/master.tar.gz && \
13-
curl -LsS https://github.com/ytdl-patched/youtube-dl/releases/latest/download/youtube-dl > /usr/local/bin/youtube-dl && \
14-
curl -LsS https://github.com/ytdl-patched/ytdl-patched/releases/latest/download/ytdl-patched > /usr/local/bin/ytdl-patched && \
15-
chmod +x /usr/local/bin/youtube-dl /usr/local/bin/ytdl-patched
11+
rm -rf /var/lib/apt/lists/*
12+
RUN pip install https://github.com/yt-dlp/yt-dlp/archive/master.tar.gz
13+
RUN pip install https://github.com/ytdl-org/youtube-dl/archive/master.tar.gz
14+
RUN pip install https://github.com/soimort/you-get/archive/master.tar.gz
1615

1716
ADD yt-dlp.conf /etc/yt-dlp.conf
18-
ADD yt-dlp.conf /etc/youtube-dl.conf
17+
# ADD yt-dlp.conf /etc/youtube-dl.conf
1918

2019
# https://github.com/smalltownjj/yt-dlp-plugin-missav
2120
ADD missav.py /etc/yt-dlp-plugins/yt-dlp-plugin-missav/yt_dlp_plugins/extractor/missav.py

yt-dlp/yt-dlp.conf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@
22
--no-mtime
33

44
--hls-prefer-ffmpeg
5+
6+
--user-agent 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36 Edg/131.0.2903.86'

0 commit comments

Comments
 (0)