diff --git a/apps/api-daemon/Dockerfile b/apps/api-daemon/Dockerfile index 505ebc0..3bfef28 100644 --- a/apps/api-daemon/Dockerfile +++ b/apps/api-daemon/Dockerfile @@ -2,7 +2,7 @@ FROM node:22-slim RUN apt-get update && apt-get install -y --no-install-recommends \ ffmpeg python3 python3-pip ca-certificates \ - && pip3 install --break-system-packages -U yt-dlp bgutil-ytdlp-pot-provider \ + && pip3 install --break-system-packages -U "yt-dlp[default]" bgutil-ytdlp-pot-provider \ && rm -rf /var/lib/apt/lists/* RUN corepack enable diff --git a/apps/api-daemon/src/capture/streamIngest.ts b/apps/api-daemon/src/capture/streamIngest.ts index 2e46b05..e919e2b 100644 --- a/apps/api-daemon/src/capture/streamIngest.ts +++ b/apps/api-daemon/src/capture/streamIngest.ts @@ -89,6 +89,7 @@ async function runCapture(job: Job): Promise { const ytdlp = spawn( "yt-dlp", [ + "--js-runtimes", "node", ...ytdlpAntiBotArgs(), "-f", "bestvideo+bestaudio/best", "-o", "-", youtubeUrl, ],