Merge remote-tracking branch 'refs/remotes/origin/3.0'
[GitHub/WoltLab/WCF.git] / com.woltlab.wcf / mediaProvider.xml
index 1d7f28135c87cab0427cdbacf51d7cd428dfddba..36df632e19e49a0c37f2b0670ed93ddab224e0d0 100644 (file)
@@ -20,12 +20,6 @@ https?://vimeo\.com/groups/[^/]+/videos/(?P<ID>\d+)]]></regex>
                        <html><![CDATA[<div class="videoContainer"><iframe src="https://player.vimeo.com/video/{$ID}" allowfullscreen></iframe></div>]]></html>
                </provider>
                
-               <provider name="clipfish">
-                       <title>Clipfish</title>
-                       <regex><![CDATA[http://(?:www\.)?clipfish\.de/(?:.*?/)?video/(?P<ID>\d+)/]]></regex>
-                       <html><![CDATA[<div style="width:464px; height:404px;"><div style="width:464px; height:384px;"><iframe src="http://www.clipfish.de/embed_video/?vid={$ID}&amp;as=0&amp;col=990000" name="Clipfish Embedded Video" width="464" height="384" align="left" marginheight="0" marginwidth="0" scrolling="no"></iframe></div></div>]]></html>
-               </provider>
-               
                <provider name="veoh">
                        <title>Veoh</title>
                        <regex><![CDATA[http://(?:www\.)?veoh\.com/watch/v(?P<ID>\d+[a-zA-Z0-9]+)]]></regex>
@@ -39,13 +33,13 @@ https?://vimeo\.com/groups/[^/]+/videos/(?P<ID>\d+)]]></regex>
                </provider>
                
                <provider name="github-gist">
-                       <title>Github Gist</title>
+                       <title>GitHub Gist</title>
                        <regex><![CDATA[https://gist.github.com/(?P<ID>[^/]+/[0-9a-zA-Z]+)]]></regex>
                        <html><![CDATA[<script src="https://gist.github.com/{$ID}.js"> </script>]]></html>
                </provider>
                
                <provider name="soundcloud">
-                       <title>Soundcloud</title>
+                       <title>SoundCloud</title>
                        <regex><![CDATA[https?://soundcloud.com/(?P<artist>[a-zA-Z0-9_-]+)/(?!sets/)(?P<song>[a-zA-Z0-9_-]+)]]></regex>
                        <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>
                </provider>
@@ -55,5 +49,56 @@ https?://vimeo\.com/groups/[^/]+/videos/(?P<ID>\d+)]]></regex>
                        <regex><![CDATA[https?://soundcloud.com/(?P<artist>[a-zA-Z0-9_-]+)/sets/(?P<name>[a-zA-Z0-9_-]+)]]></regex>
                        <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>
                </provider>
+               
+               <provider name="instagram">
+                       <title>Instagram</title>
+                       <regex><![CDATA[https?://(?:www\.)?(?:instagram\.com|instagr\.am)/p/(?<ID>[a-zA-Z0-9_-]+)]]></regex>
+                       <html><![CDATA[<iframe src="//instagram.com/p/{$ID}/embed/" width="560" height="640" frameborder="0" scrolling="no" allowtransparency="true"></iframe>]]></html>
+               </provider>
+               
+               <provider name="imgur">
+                       <title>Imgur</title>
+                       <regex><![CDATA[https?://imgur.com/(?:gallery/)?(?P<ID>[a-zA-Z0-9-]+)]]></regex>
+                       <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>
+               </provider>
+               
+               <provider name="spotify-playlist">
+                       <title>Spotify Playlist</title>
+                       <regex><![CDATA[https?://play.spotify.com/user/(?<USER>[0-9a-zA-Z]+)/playlist/(?<ID>[0-9a-zA-Z]+)
+https?://open.spotify.com/user/(?<USER>[0-9a-zA-Z]+)/playlist/(?<ID>[0-9a-zA-Z]+)]]></regex>
+                       <html><![CDATA[<iframe width="300" height="380" src="https://embed.spotify.com/?uri=spotify:user:{$USER}:playlist:{$ID}" frameborder="0" allowtransparency="true"></iframe>]]></html>
+               </provider>
+               
+               <provider name="spotify">
+                       <title>Spotify</title>
+                       <regex><![CDATA[https?://play.spotify.com/(?<TYPE>[a-zA-Z]+)/(?<ID>[0-9a-zA-Z]+)
+https?://open.spotify.com/(?<TYPE>[a-zA-Z]+)/(?<ID>[0-9a-zA-Z]+)]]></regex>
+                       <html><![CDATA[<iframe width="300" height="380" src="https://embed.spotify.com/?uri=spotify:{$TYPE}:{$ID}" frameborder="0" allowtransparency="true"></iframe>]]></html>
+               </provider>
+               
+               <provider name="twitch-channel">
+                       <title>Twitch Channel</title>
+                       <regex><![CDATA[https?://www.twitch.tv/(?!videos)(?!.*/v/)(?<CHANNEL>[a-zA-Z0-9_]+)]]></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]+)
+https?://www.twitch.tv/[a-zA-Z0-9]+/v/(?<ID>[0-9]+)]]></regex>
+                       <html><![CDATA[<div class="videoContainer"><iframe src="https://player.twitch.tv/?video=v{$ID}&autoplay=false" frameborder="0" scrolling="no" allowfullscreen></iframe></div>]]></html>
+               </provider>
+               
+               <provider name="facebook-video">
+                       <title>Facebook Video</title>
+                       <regex><![CDATA[https://(?:.+?\.)?facebook\.com/(?:[a-zA-Z0-9_]+/)?video(?:s/|\.php)(?:\?id=|\?v=)?(?<ID>[0-9]+)]]></regex>
+                       <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>
+               </provider>
        </import>
 </data>