Added facebook-video media provider
authorSascha Greuel <SoftCreatR@users.noreply.github.com>
Fri, 6 Oct 2017 00:43:34 +0000 (02:43 +0200)
committerGitHub <noreply@github.com>
Fri, 6 Oct 2017 00:43:34 +0000 (02:43 +0200)
Supported formats:

https://www.facebook.com/{page-name}/videos/{video-id}/
https://www.facebook.com/{username}/videos/{video-id}/
https://www.facebook.com/video.php?id={video-id}
https://www.facebook.com/video.php?v={video-id}

com.woltlab.wcf/mediaProvider.xml

index a8024d9e1841168f0ba3e23bc75cf6415c038fa3..36df632e19e49a0c37f2b0670ed93ddab224e0d0 100644 (file)
@@ -94,5 +94,11 @@ https?://open.spotify.com/(?<TYPE>[a-zA-Z]+)/(?<ID>[0-9a-zA-Z]+)]]></regex>
 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>