From 9583e8f250ac67cfafc03cc9f4fdcb7f83252d6f Mon Sep 17 00:00:00 2001 From: CREDO23 Date: Tue, 16 Jun 2026 23:38:27 +0200 Subject: [PATCH] feat(podcasts): add shared duration limit constants --- surfsense_backend/app/podcasts/duration_limits.py | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 surfsense_backend/app/podcasts/duration_limits.py diff --git a/surfsense_backend/app/podcasts/duration_limits.py b/surfsense_backend/app/podcasts/duration_limits.py new file mode 100644 index 000000000..fc7d29890 --- /dev/null +++ b/surfsense_backend/app/podcasts/duration_limits.py @@ -0,0 +1,6 @@ +"""Shared bounds and defaults for podcast target duration.""" + +MAX_DURATION_SECONDS = 24 * 60 * 60 +MIN_DURATION_SECONDS = 15 +DEFAULT_MIN_SECONDS = 20 +DEFAULT_MAX_SECONDS = 30