From 880c23dbe529fce90609c89d83ff882ebd1e2be6 Mon Sep 17 00:00:00 2001 From: Julien Calixte Date: Mon, 23 Mar 2026 22:29:25 +0100 Subject: [PATCH] fix: upgrade yt-dlp to 2025.x to fix YouTube extraction YouTube regularly breaks older yt-dlp versions. Bumped the minimum version and added a separate Docker layer for yt-dlp so it can be upgraded without busting the main pip cache. --- Dockerfile | 2 ++ requirements.txt | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index a16e5e5..1b52839 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,6 +9,8 @@ WORKDIR /app COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt +# Install yt-dlp last so it can be bumped independently without busting the cache above +RUN pip install --no-cache-dir --upgrade "yt-dlp>=2025.1" COPY app/ ./app/ diff --git a/requirements.txt b/requirements.txt index 9deb25b..5953d26 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,7 +1,7 @@ fastapi>=0.111 uvicorn[standard]>=0.29 python-multipart>=0.0.9 -yt-dlp>=2024.1 +yt-dlp>=2025.1 pydantic>=2.0 pydantic-settings>=2.0 aiofiles>=23.0