100mb instead of 150mb

This commit is contained in:
localhost 2025-11-05 22:11:55 +01:00
parent 3e2c562fb9
commit f9fcfe01af
1 changed files with 2 additions and 1 deletions

View File

@ -209,7 +209,8 @@ app.ws('/download/:id', async (ws, req) => {
const videoSizeTotal = (selectedFormats.audioFormat.contentLength || 0)
+ (selectedFormats.videoFormat.contentLength || 0)
if (videoSizeTotal > (1_048_576 * 150) && !config.whitelist.includes(req.params.id)) {
// 100MB
if (videoSizeTotal > (1_048_576 * 100) && !config.whitelist.includes(req.params.id)) {
ws.send('Is this content considered high risk? If so, please email me at admin@preservetube.com.');
ws.send('This video is too large, and unfortunately, Preservetube does not have unlimited storage.');
return ws.close()