From c2f81583a30dbdfea453dfa874aa45c66a165fc4 Mon Sep 17 00:00:00 2001 From: localhost Date: Fri, 15 Sep 2023 18:55:10 +0200 Subject: [PATCH] ytdlp file limit update --- utils/ytdlp.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/utils/ytdlp.js b/utils/ytdlp.js index 720e88b..656079c 100644 --- a/utils/ytdlp.js +++ b/utils/ytdlp.js @@ -2,7 +2,7 @@ const child_process = require('child_process') async function downloadVideo(url, ws) { return new Promise((resolve, reject) => { - const child = child_process.spawn("../yt-dlp", ["--max-filesize=2G", url], {cwd: 'videos', shell: false}) + const child = child_process.spawn("../yt-dlp", [url], {cwd: 'videos', shell: false}) child.stdout.on("data", data => { const msg = data.toString().trim() @@ -14,8 +14,7 @@ async function downloadVideo(url, ws) { child.on("close", async (code, signal) => { if (code == 2) { reject({ - fail: true, - message: 'Video file is above 2GB. Consider selfhosting PreserveTube!' + fail: true }) } else { resolve({