Added support for youtube shorts
authorSascha Greuel <sascha@softcreatr.de>
Sun, 28 Mar 2021 09:43:58 +0000 (11:43 +0200)
committerGitHub <noreply@github.com>
Sun, 28 Mar 2021 09:43:58 +0000 (11:43 +0200)
com.woltlab.wcf/mediaProvider.xml

index b7a648f2c911d4190162f143274115d3c0cea6f2..134bfa6e7fed3c278ffbb98fc513cca5211dc298 100644 (file)
@@ -3,7 +3,8 @@
        <import>
                <provider name="youtube">
                        <title>YouTube</title>
-                       <regex><![CDATA[https?://(?:.+?\.)?youtu(?:\.be/|be\.com/(?:#/)?watch\?(?:.*?&)?v=)(?P<ID>[a-zA-Z0-9_-]+)]]></regex>
+                       <regex><![CDATA[https?://(?:.+?\.)?youtu(?:\.be/|be\.com/(?:#/)?watch\?(?:.*?&)?v=)(?P<ID>[a-zA-Z0-9_-]+)
+https?://(?:.+?\.)?youtube.com/shorts/(?P<ID>[a-zA-Z0-9_-]+)]]></regex>
                        <className>wcf\system\bbcode\media\provider\YouTubeBBCodeMediaProvider</className>
                </provider>
                <provider name="youtube-playlist">