From 7d1cdf0952b362f64d75fdfadb56ac95a6ee24fd Mon Sep 17 00:00:00 2001 From: localhost Date: Tue, 14 Oct 2025 20:54:27 +0200 Subject: [PATCH] support /live/ urls --- src/utils/regex.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/utils/regex.ts b/src/utils/regex.ts index 3d5062f..0530c37 100644 --- a/src/utils/regex.ts +++ b/src/utils/regex.ts @@ -14,6 +14,8 @@ function validateVideo(input: string): string | false { videoId = url.searchParams.get('v')! } else if (url.pathname.startsWith('/shorts/')) { videoId = url.pathname.replace('/shorts/', '') + } else if (url.pathname.startsWith('/live/')) { + videoId = url.pathname.replace('/live/', '') } else return false // removed - embed url }