projects
/
GitHub
/
WoltLab
/
WCF.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ccc2533
)
Improved detection of the links to twitch's clips
author
Marcel Werk
<burntime@woltlab.com>
Tue, 14 Jul 2020 17:09:26 +0000
(19:09 +0200)
committer
Marcel Werk
<burntime@woltlab.com>
Tue, 14 Jul 2020 17:09:26 +0000
(19:09 +0200)
com.woltlab.wcf/mediaProvider.xml
patch
|
blob
|
blame
|
history
diff --git
a/com.woltlab.wcf/mediaProvider.xml
b/com.woltlab.wcf/mediaProvider.xml
index f817be611e32a3efc1f31c64d3ba491c1bc06ec6..33948e8956268c13f27849294966ca4e085bb610 100644
(file)
--- a/
com.woltlab.wcf/mediaProvider.xml
+++ b/
com.woltlab.wcf/mediaProvider.xml
@@
-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>