Commit | Line | Data |
---|---|---|
7d346d2a MW |
1 | <?xml version="1.0" encoding="UTF-8"?> |
2 | <data xmlns="http://www.woltlab.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.woltlab.com http://www.woltlab.com/XSD/tornado/mediaProvider.xsd"> | |
3 | <import> | |
4 | <provider name="youtube"> | |
5 | <title>YouTube</title> | |
6 | <regex><![CDATA[https?://(?:.+?\.)?youtu(?:\.be/|be\.com/(?:#/)?watch\?(?:.*?&)?v=)(?P<ID>[a-zA-Z0-9_-]+)(?:(?:\?|&)t=(?P<start>[0-9hms]+)$)?]]></regex> | |
7 | <className><![CDATA[wcf\system\bbcode\media\provider\YouTubeBBCodeMediaProvider]]></className> | |
8 | </provider> | |
9 | ||
10 | <provider name="youtube-playlist"> | |
11 | <title>YouTube Playlist</title> | |
12 | <regex><![CDATA[https?://(?:.+?\.)?youtu(?:\.be/|be\.com/)playlist\?(?:.*?&)?list=(?P<ID>[a-zA-Z0-9_-]+)]]></regex> | |
13 | <html><![CDATA[<div class="videoContainer"><iframe src="https://www.youtube.com/embed/videoseries?list={$ID}" allowfullscreen></iframe></div>]]></html> | |
14 | </provider> | |
15 | ||
16 | <provider name="vimeo"> | |
17 | <title>Vimeo</title> | |
56368095 MW |
18 | <regex><![CDATA[https?://vimeo\.com/(?:channels/[^/]+/)?(?P<ID>\d+) |
19 | https?://vimeo\.com/groups/[^/]+/videos/(?P<ID>\d+)]]></regex> | |
7d346d2a MW |
20 | <html><![CDATA[<div class="videoContainer"><iframe src="https://player.vimeo.com/video/{$ID}" allowfullscreen></iframe></div>]]></html> |
21 | </provider> | |
22 | ||
7d346d2a MW |
23 | <provider name="veoh"> |
24 | <title>Veoh</title> | |
25 | <regex><![CDATA[http://(?:www\.)?veoh\.com/watch/v(?P<ID>\d+[a-zA-Z0-9]+)]]></regex> | |
26 | <html><![CDATA[<object width="410" height="341" id="veohFlashPlayer" name="veohFlashPlayer" type="application/x-shockwave-flash" data="http://www.veoh.com/swf/webplayer/WebPlayer.swf?version=AFrontend.5.7.0.1308&permalinkId=v{$ID}&player=videodetailsembedded&videoAutoPlay=0&id=anonymous"><param name="movie" value="http://www.veoh.com/swf/webplayer/WebPlayer.swf?version=AFrontend.5.7.0.1308&permalinkId=v{$ID}&player=videodetailsembedded&videoAutoPlay=0&id=anonymous" /><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="wmode" value="transparent" /></object>]]></html> | |
27 | </provider> | |
28 | ||
29 | <provider name="dailymotion"> | |
30 | <title>Dailymotion</title> | |
31 | <regex><![CDATA[https?://(?:www\.)?dailymotion\.com/video/(?P<ID>[a-zA-Z0-9_-]+)]]></regex> | |
32 | <html><![CDATA[<iframe width="480" height="270" src="//www.dailymotion.com/embed/video/{$ID}"></iframe>]]></html> | |
33 | </provider> | |
34 | ||
35 | <provider name="github-gist"> | |
e4688de2 | 36 | <title>GitHub Gist</title> |
7d346d2a MW |
37 | <regex><![CDATA[https://gist.github.com/(?P<ID>[^/]+/[0-9a-zA-Z]+)]]></regex> |
38 | <html><![CDATA[<script src="https://gist.github.com/{$ID}.js"> </script>]]></html> | |
39 | </provider> | |
40 | ||
41 | <provider name="soundcloud"> | |
e4688de2 | 42 | <title>SoundCloud</title> |
7d346d2a MW |
43 | <regex><![CDATA[https?://soundcloud.com/(?P<artist>[a-zA-Z0-9_-]+)/(?!sets/)(?P<song>[a-zA-Z0-9_-]+)]]></regex> |
44 | <html><![CDATA[<iframe width="100%" height="166" scrolling="no" src="https://w.soundcloud.com/player/?url=http%3A%2F%2Fsoundcloud.com%2F{$artist}%2F{$song}"></iframe>]]></html> | |
45 | </provider> | |
46 | ||
47 | <provider name="soundcloud-set"> | |
48 | <title>Soundcloud Set</title> | |
49 | <regex><![CDATA[https?://soundcloud.com/(?P<artist>[a-zA-Z0-9_-]+)/sets/(?P<name>[a-zA-Z0-9_-]+)]]></regex> | |
50 | <html><![CDATA[<iframe width="100%" height="450" scrolling="no" src="https://w.soundcloud.com/player/?url=http%3A%2F%2Fsoundcloud.com%2F{$artist}%2Fsets%2F{$name}"></iframe>]]></html> | |
51 | </provider> | |
fbefbe88 MW |
52 | |
53 | <provider name="instagram"> | |
54 | <title>Instagram</title> | |
55 | <regex><![CDATA[https?://(?:www\.)?(?:instagram\.com|instagr\.am)/p/(?<ID>[a-zA-Z0-9_-]+)]]></regex> | |
56 | <html><![CDATA[<iframe src="//instagram.com/p/{$ID}/embed/" width="560" height="640" frameborder="0" scrolling="no" allowtransparency="true"></iframe>]]></html> | |
57 | </provider> | |
58 | ||
59 | <provider name="imgur"> | |
60 | <title>Imgur</title> | |
61 | <regex><![CDATA[https?://imgur.com/(?:gallery/)?(?P<ID>[a-zA-Z0-9-]+)]]></regex> | |
62 | <html><![CDATA[<blockquote class="imgur-embed-pub" data-id="a/{$ID}"></blockquote><script async src="//s.imgur.com/min/embed.js" charset="utf-8"></script>]]></html> | |
63 | </provider> | |
64 | ||
65 | <provider name="spotify-playlist"> | |
66 | <title>Spotify Playlist</title> | |
67 | <regex><![CDATA[https?://play.spotify.com/user/(?<USER>[0-9a-zA-Z]+)/playlist/(?<ID>[0-9a-zA-Z]+) | |
68 | https?://open.spotify.com/user/(?<USER>[0-9a-zA-Z]+)/playlist/(?<ID>[0-9a-zA-Z]+)]]></regex> | |
69 | <html><![CDATA[<iframe width="300" height="380" src="https://embed.spotify.com/?uri=spotify:user:{$USER}:playlist:{$ID}" frameborder="0" allowtransparency="true"></iframe>]]></html> | |
70 | </provider> | |
71 | ||
72 | <provider name="spotify"> | |
73 | <title>Spotify</title> | |
74 | <regex><![CDATA[https?://play.spotify.com/(?<TYPE>[a-zA-Z]+)/(?<ID>[0-9a-zA-Z]+) | |
75 | https?://open.spotify.com/(?<TYPE>[a-zA-Z]+)/(?<ID>[0-9a-zA-Z]+)]]></regex> | |
76 | <html><![CDATA[<iframe width="300" height="380" src="https://embed.spotify.com/?uri=spotify:{$TYPE}:{$ID}" frameborder="0" allowtransparency="true"></iframe>]]></html> | |
77 | </provider> | |
3c7e4e39 MW |
78 | |
79 | <provider name="twitch-channel"> | |
80 | <title>Twitch Channel</title> | |
81 | <regex><![CDATA[https?://www.twitch.tv/(?!videos)(?!.*/v/)(?<CHANNEL>[a-zA-Z0-9_]+)]]></regex> | |
82 | <html><![CDATA[<div class="videoContainer"><iframe src="https://player.twitch.tv/?channel={$CHANNEL}&autoplay=false" frameborder="0" scrolling="no" allowfullscreen></iframe></div>]]></html> | |
83 | </provider> | |
84 | ||
04eb2279 MW |
85 | <provider name="twitch-clip"> |
86 | <title>Twitch Clip</title> | |
87 | <regex><![CDATA[https?://clips.twitch.tv/(?<AUTHOR>([a-zA-Z0-9_]+)/)?(?<VIDEO>[a-zA-Z0-9_]+)]]></regex> | |
88 | <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> | |
89 | </provider> | |
90 | ||
3c7e4e39 MW |
91 | <provider name="twitch-video"> |
92 | <title>Twitch Video</title> | |
93 | <regex><![CDATA[https?://www.twitch.tv/videos/(?<ID>[0-9]+) | |
94 | https?://www.twitch.tv/[a-zA-Z0-9]+/v/(?<ID>[0-9]+)]]></regex> | |
95 | <html><![CDATA[<div class="videoContainer"><iframe src="https://player.twitch.tv/?video=v{$ID}&autoplay=false" frameborder="0" scrolling="no" allowfullscreen></iframe></div>]]></html> | |
96 | </provider> | |
f62ca1fc SG |
97 | |
98 | <provider name="facebook-video"> | |
99 | <title>Facebook Video</title> | |
100 | <regex><![CDATA[https://(?:.+?\.)?facebook\.com/(?:[a-zA-Z0-9_]+/)?video(?:s/|\.php)(?:\?id=|\?v=)?(?<ID>[0-9]+)]]></regex> | |
101 | <html><![CDATA[<iframe src="https://www.facebook.com/plugins/video.php?href=https%3A%2F%2Fwww.facebook.com%2Fvideo.php%3Fv%3D{$ID}&show_text=0&width=560" width="560" height="315" style="border:none;overflow:hidden" scrolling="no" frameborder="0" allowTransparency="true" allowFullScreen="true"></iframe>]]></html> | |
102 | </provider> | |
7d346d2a MW |
103 | </import> |
104 | </data> |