From 31e46dfbb8745a17cb21070e3046ad822d11c831 Mon Sep 17 00:00:00 2001 From: Kieran Eglin Date: Wed, 14 Aug 2024 12:47:45 -0700 Subject: [PATCH] Added duration limits to source form --- .../sources/source_html/source_form.html.heex | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/lib/pinchflat_web/controllers/sources/source_html/source_form.html.heex b/lib/pinchflat_web/controllers/sources/source_html/source_form.html.heex index c30efed..759d92b 100644 --- a/lib/pinchflat_web/controllers/sources/source_html/source_form.html.heex +++ b/lib/pinchflat_web/controllers/sources/source_html/source_form.html.heex @@ -121,6 +121,20 @@ Tread carefully

+ <.input + field={f[:min_duration_seconds]} + type="number" + label="Minimum Duration (seconds)" + help="Minimum duration of the media to be downloaded. Can be blank" + /> + + <.input + field={f[:max_duration_seconds]} + type="number" + label="Maximum Duration (seconds)" + help="Maximum duration of the media to be downloaded. Can be blank" + /> + <.input field={f[:title_filter_regex]} type="text"