From 5c048e96db1a8f4f0a9fdcb8ac8bdfa885381337 Mon Sep 17 00:00:00 2001 From: Kieran Eglin Date: Tue, 11 Mar 2025 15:40:07 -0700 Subject: [PATCH] Added rate limit to settings form --- .../settings/setting_html/setting_form.html.heex | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lib/pinchflat_web/controllers/settings/setting_html/setting_form.html.heex b/lib/pinchflat_web/controllers/settings/setting_html/setting_form.html.heex index b75e58b..9fb55cc 100644 --- a/lib/pinchflat_web/controllers/settings/setting_html/setting_form.html.heex +++ b/lib/pinchflat_web/controllers/settings/setting_html/setting_form.html.heex @@ -47,7 +47,14 @@ placeholder="0" type="number" label="Sleep Interval (seconds)" - help="Sleep interval in seconds between each extractor request. Must be a positive whole number (or set to 0 to disable)" + help="Sleep interval in seconds between each extractor request. Must be a positive whole number. Set to 0 to disable" + /> + + <.input + field={f[:download_throughput_limit]} + placeholder="4.2M" + label="Download Throughput" + help="Sets the max throughput when downloading media. Examples: '50K' or '4.2M'. Leave blank to disable" />