From 28bbbd7e5890919019641ec2489033dd2dd4613f Mon Sep 17 00:00:00 2001 From: unknown <89595418+unknownsrc@users.noreply.github.com> Date: Sat, 11 Mar 2023 08:20:20 +0100 Subject: [PATCH] 2GB video --- utils/ytdlp.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/ytdlp.js b/utils/ytdlp.js index 08a0374..720e88b 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=1G", url], {cwd: 'videos', shell: false}) + const child = child_process.spawn("../yt-dlp", ["--max-filesize=2G", url], {cwd: 'videos', shell: false}) child.stdout.on("data", data => { const msg = data.toString().trim() @@ -15,7 +15,7 @@ async function downloadVideo(url, ws) { if (code == 2) { reject({ fail: true, - message: 'Video file is above 1GB. Consider selfhosting PreserveTube!' + message: 'Video file is above 2GB. Consider selfhosting PreserveTube!' }) } else { resolve({