From 12d9c469b211d81a9c6efcef025e79bdeae42015 Mon Sep 17 00:00:00 2001 From: Peter Upfold Date: Mon, 13 Apr 2026 18:19:23 +0100 Subject: [PATCH 1/3] Add Deno to Dockerfile --- Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index c2ffe35..a56ac08 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,7 +12,7 @@ ARG TARGETARCH # Installing system dependencies RUN apt-get update && \ - apt-get install -y --no-install-recommends gcc ffmpeg fonts-noto exiftool python3-tk + apt-get install -y --no-install-recommends gcc ffmpeg fonts-noto exiftool python3-tk curl unzip # Poetry and runtime FROM base AS runtime @@ -27,6 +27,9 @@ RUN python3 -m venv /poetry-venv && \ /poetry-venv/bin/python -m pip install --upgrade pip && \ /poetry-venv/bin/python -m pip install "poetry>=2.0.0,<3.0.0" +# Add Deno for solving YT JS challenges +RUN curl -fsSL https://deno.land/install.sh | DENO_INSTALL=/usr sh + WORKDIR /app From 4e5c1a62184ef1725484d336a857ac39523b5765 Mon Sep 17 00:00:00 2001 From: msramalho <19508417+msramalho@users.noreply.github.com> Date: Thu, 23 Apr 2026 14:02:51 +0100 Subject: [PATCH 2/3] suggested alternative change to deno install --- Dockerfile | 6 +----- .../modules/generic_extractor/generic_extractor.py | 2 ++ 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index a56ac08..7d09d21 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,8 +4,7 @@ ENV RUNNING_IN_DOCKER=1 \ LANG=C.UTF-8 \ LC_ALL=C.UTF-8 \ PYTHONDONTWRITEBYTECODE=1 \ - PYTHONFAULTHANDLER=1 \ - PATH="/root/.local/bin:$PATH" + PYTHONFAULTHANDLER=1 ARG TARGETARCH @@ -27,9 +26,6 @@ RUN python3 -m venv /poetry-venv && \ /poetry-venv/bin/python -m pip install --upgrade pip && \ /poetry-venv/bin/python -m pip install "poetry>=2.0.0,<3.0.0" -# Add Deno for solving YT JS challenges -RUN curl -fsSL https://deno.land/install.sh | DENO_INSTALL=/usr sh - WORKDIR /app diff --git a/src/auto_archiver/modules/generic_extractor/generic_extractor.py b/src/auto_archiver/modules/generic_extractor/generic_extractor.py index d3a2f1b..b60132e 100644 --- a/src/auto_archiver/modules/generic_extractor/generic_extractor.py +++ b/src/auto_archiver/modules/generic_extractor/generic_extractor.py @@ -575,6 +575,8 @@ class GenericExtractor(Extractor): "--live-from-start" if self.live_from_start else "--no-live-from-start", "--postprocessor-args", "ffmpeg:-bitexact", # ensure bitexact output to avoid mismatching hashes for same video + "--js-runtimes", + "node", # yt-dlp defaults to deno-only; node is available in the base image ] # proxy handling From 2582f567ac70118a11676ad4f0d014e5f241af4a Mon Sep 17 00:00:00 2001 From: msramalho <19508417+msramalho@users.noreply.github.com> Date: Thu, 23 Apr 2026 14:04:46 +0100 Subject: [PATCH 3/3] removes curl/unzip from dockerfile --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 7d09d21..084ed4f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,7 +11,7 @@ ARG TARGETARCH # Installing system dependencies RUN apt-get update && \ - apt-get install -y --no-install-recommends gcc ffmpeg fonts-noto exiftool python3-tk curl unzip + apt-get install -y --no-install-recommends gcc ffmpeg fonts-noto exiftool python3-tk # Poetry and runtime FROM base AS runtime