From e87afb4e97967a5e951a69070023618a851f9fd4 Mon Sep 17 00:00:00 2001 From: localhost Date: Sat, 9 Mar 2024 09:14:35 +0100 Subject: [PATCH] updating to ytdlp nightly --- Dockerfile | 2 +- utils/ytdlp.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 0eb3ff7..0e79183 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,7 +8,7 @@ WORKDIR /usr/src/preservetube/backend COPY . /usr/src/preservetube/backend RUN yarn -RUN wget https://github.com/yt-dlp/yt-dlp/releases/download/2023.12.30/yt-dlp -q +RUN wget https://github.com/yt-dlp/yt-dlp-nightly-builds/releases/download/2024.03.08.232718/yt-dlp -q RUN chmod +x yt-dlp CMD ["node", "index.js"] \ No newline at end of file diff --git a/utils/ytdlp.js b/utils/ytdlp.js index 7bc13e0..ea29cb8 100644 --- a/utils/ytdlp.js +++ b/utils/ytdlp.js @@ -21,7 +21,7 @@ async function downloadVideo(url, ws) { }) child.on("close", async (code, signal) => { - if (code == 2 || code == 1) { + if (code == 2 || code == 1) { // https://github.com/yt-dlp/yt-dlp/issues/4262 reject({ fail: true })