From d285288addcbeab331ef100eef500800707d314a Mon Sep 17 00:00:00 2001 From: rktjmp Date: Sat, 7 Feb 2026 02:03:06 +1100 Subject: [PATCH] Support embedding youtube shorts (#1824) --- libraries/Library/Std/Widgets/Embed.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libraries/Library/Std/Widgets/Embed.md b/libraries/Library/Std/Widgets/Embed.md index 824faf13..c1cae174 100644 --- a/libraries/Library/Std/Widgets/Embed.md +++ b/libraries/Library/Std/Widgets/Embed.md @@ -41,6 +41,9 @@ function embed.youtube(specOrUrl) if not videoId then videoId = string.match(specOrUrl.url, "youtu%.be/(.+)") end + if not videoId then + videoId = string.match(specOrUrl.url, "youtube%.com/shorts/(.+)") + end if not videoId then error("No video id found")