Fix YouTube downloads with JavaScript runtime
All checks were successful
Deploy Dzen assistant / deploy (push) Successful in 2m18s

This commit is contained in:
nstarikov 2026-09-02 19:46:34 +03:00
parent 70f6b8287a
commit bd32e28a91
3 changed files with 3 additions and 3 deletions

View file

@ -24,7 +24,7 @@ ENV PYTHONUNBUFFERED=1
WORKDIR /app WORKDIR /app
RUN apt-get update \ RUN apt-get update \
&& apt-get install -y --no-install-recommends ffmpeg ca-certificates libgomp1 \ && apt-get install -y --no-install-recommends ffmpeg ca-certificates libgomp1 nodejs \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*
COPY requirements.txt requirements-yt-dlp.txt ./ COPY requirements.txt requirements-yt-dlp.txt ./

View file

@ -399,7 +399,7 @@ def command_progress_percent(stage: str, line: str) -> int | None:
def ytdlp_base_args() -> list[str]: def ytdlp_base_args() -> list[str]:
args = ["yt-dlp"] args = ["yt-dlp", "--js-runtimes", "node"]
cookies = Path(settings.ytdlp_cookies_path) cookies = Path(settings.ytdlp_cookies_path)
if cookies.exists(): if cookies.exists():
args.extend(["--cookies", str(cookies)]) args.extend(["--cookies", str(cookies)])

View file

@ -1 +1 @@
yt-dlp==2026.7.4 yt-dlp[default]==2026.8.19