Added support for twitch clips
authorMarcel Werk <burntime@woltlab.com>
Wed, 2 Aug 2017 09:24:43 +0000 (11:24 +0200)
committerMarcel Werk <burntime@woltlab.com>
Wed, 2 Aug 2017 09:24:43 +0000 (11:24 +0200)
See #2357

com.woltlab.wcf/mediaProvider.xml

index e458e91e02efa6ba7703c6001ddb9b6363f579bf..b6b5bdb327a7c21f72ee49d237a7f799d03e0316 100644 (file)
@@ -88,6 +88,12 @@ https?://open.spotify.com/(?<TYPE>[a-zA-Z]+)/(?<ID>[0-9a-zA-Z]+)]]></regex>
                        <html><![CDATA[<div class="videoContainer"><iframe src="https://player.twitch.tv/?channel={$CHANNEL}&autoplay=false" frameborder="0" scrolling="no" allowfullscreen></iframe></div>]]></html>
                </provider>
                
+               <provider name="twitch-clip">
+                       <title>Twitch Clip</title>
+                       <regex><![CDATA[https?://clips.twitch.tv/(?<AUTHOR>([a-zA-Z0-9_]+)/)?(?<VIDEO>[a-zA-Z0-9_]+)]]></regex>
+                       <html><![CDATA[<div class="videoContainer"><iframe src="https://clips.twitch.tv/embed?clip={$AUTHOR}{$VIDEO}&autoplay=false" frameborder="0" scrolling="no" allowfullscreen></iframe></div>]]></html>
+               </provider>
+               
                <provider name="twitch-video">
                        <title>Twitch Video</title>
                        <regex><![CDATA[https?://www.twitch.tv/videos/(?<ID>[0-9]+)