From 1ab2b88ddece8184ac5cdbb817fa8a117a807a40 Mon Sep 17 00:00:00 2001 From: bensteinberg Date: Fri, 22 Nov 2024 13:58:19 -0500 Subject: [PATCH] Limit size of video attachment --- README.md | 1 + Scoop.js | 70 +++++++++++++++++++++++++++--------------------- Scoop.test.js | 17 ++++++++++++ bin/cli.js | 7 +++++ options.js | 1 + options.types.js | 4 ++- 6 files changed, 68 insertions(+), 32 deletions(-) diff --git a/README.md b/README.md index 5affa1e0..b4b6c944 100644 --- a/README.md +++ b/README.md @@ -196,6 +196,7 @@ Options: --capture-window-x Width of the browser window Scoop will open to capture, in pixels. (default: 1600) --capture-window-y Height of the browser window Scoop will open to capture, in pixels. (default: 900) --max-capture-size Size limit for the capture's exchanges list, in bytes. (default: 209715200) + --max-video-capture-size Size limit for the video attachment, in bytes. Scoop will not capture video attachments larger than this. (default: 209715200) --auto-scroll Should Scoop try to scroll through the page? (choices: "true", "false", default: "true") --auto-play-media Should Scoop try to autoplay `