Improved detection of the links to twitch's clips
authorMarcel Werk <burntime@woltlab.com>
Tue, 14 Jul 2020 17:09:26 +0000 (19:09 +0200)
committerMarcel Werk <burntime@woltlab.com>
Tue, 14 Jul 2020 17:09:26 +0000 (19:09 +0200)
com.woltlab.wcf/mediaProvider.xml

index f817be611e32a3efc1f31c64d3ba491c1bc06ec6..33948e8956268c13f27849294966ca4e085bb610 100644 (file)
@@ -72,7 +72,8 @@ https?://open.spotify.com/(?<TYPE>[a-zA-Z]+)/(?<ID>[0-9a-zA-Z]+)]]></regex>
                
                <provider name="twitch">
                        <title>Twitch</title>
-                       <regex><![CDATA[https?://www.twitch.tv/(?<AUTHOR>[a-zA-Z0-9_]+)/clip/(?<CLIP>[a-zA-Z0-9_]+)
+                       <regex><![CDATA[https?://clips.twitch.tv/(?<CLIP>[a-zA-Z0-9_]+)
+https?://www.twitch.tv/(?<AUTHOR>[a-zA-Z0-9_]+)/clip/(?<CLIP>[a-zA-Z0-9_]+)
 https?://www.twitch.tv/(?!videos)(?!.*/v/)(?<CHANNEL>[a-zA-Z0-9_]+)
 https?://www.twitch.tv/videos/(?<VIDEO>[0-9]+)
 https?://www.twitch.tv/[a-zA-Z0-9]+/v/(?<VIDEO>[0-9]+)]]></regex>