From 7aaa55a57f834502ccc88c41dc95cd5be586280d Mon Sep 17 00:00:00 2001 From: Jing T Date: Sat, 30 May 2026 12:06:14 -0400 Subject: [PATCH] =?UTF-8?q?Allow=20rtsps://=20in=20camera=20wizard=20URL?= =?UTF-8?q?=20validation=20Extends=20the=20custom=20URL=20validator=20to?= =?UTF-8?q?=20accept=20both=20rtsp://=20and=20rtsps://,=20and=20updates=20?= =?UTF-8?q?the=20error=20message=20in=20all=2025=20translated=20locales=20?= =?UTF-8?q?to=20reflect=20both=20schemes.=20Also=20fixes=20a=20pre-existin?= =?UTF-8?q?g=20typo=20in=20the=20Slovak=20translation=20(\"rtsp=20/=20\"?= =?UTF-8?q?=20=E2=86=92=20\"rtsp://\").?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Sonnet 4.6 --- web/public/locales/en/views/settings.json | 2 +- web/src/components/settings/wizard/Step1NameCamera.tsx | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/web/public/locales/en/views/settings.json b/web/public/locales/en/views/settings.json index 2374c506e7..a19b70cec4 100644 --- a/web/public/locales/en/views/settings.json +++ b/web/public/locales/en/views/settings.json @@ -320,7 +320,7 @@ "nameLength": "Camera name must be 64 characters or less", "invalidCharacters": "Camera name contains invalid characters", "nameExists": "Camera name already exists", - "customUrlRtspRequired": "Custom URLs must begin with \"rtsp://\". Manual configuration is required for non-RTSP camera streams." + "customUrlRtspRequired": "Custom URLs must begin with \"rtsp://\" or \"rtsps://\". Manual configuration is required for non-RTSP camera streams." } }, "step2": { diff --git a/web/src/components/settings/wizard/Step1NameCamera.tsx b/web/src/components/settings/wizard/Step1NameCamera.tsx index 9c5545db41..98c15bcbab 100644 --- a/web/src/components/settings/wizard/Step1NameCamera.tsx +++ b/web/src/components/settings/wizard/Step1NameCamera.tsx @@ -87,7 +87,8 @@ export default function Step1NameCamera({ .string() .optional() .refine( - (val) => !val || val.startsWith("rtsp://"), + (val) => + !val || val.startsWith("rtsp://") || val.startsWith("rtsps://"), t("cameraWizard.step1.errors.customUrlRtspRequired"), ), })