Support embedding youtube shorts (#1824)

This commit is contained in:
rktjmp
2026-02-06 16:03:06 +01:00
committed by GitHub
parent 2c1cc8ced1
commit d285288add
+3
View File
@@ -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")