Skip to content

Commit

Permalink
Added support for NYTimes Video
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshyPHP committed May 30, 2014
1 parent 6b5a72c commit 18d8860
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 3 deletions.
5 changes: 5 additions & 0 deletions README.md
Expand Up @@ -169,6 +169,11 @@ Media BB Codes for XenForo, imported from [s9e\TextFormatter](https://github.com
<td>Mixcloud</td>
<td>http://www.mixcloud.com/OneTakeTapes/timsch-one-take-tapes-2/<br/>http://i.mixcloud.com/CH9VU9</td>
</tr>
<tr>
<td><code>nytimes</code></td>
<td>The New York Times Video</td>
<td>http://www.nytimes.com/video/technology/personaltech/100000002907606/soylent-taste-test.html<br/>http://www.nytimes.com/video/2012/12/17/business/100000001950744/how-wal-mart-conquered-teotihuacan.html</td>
</tr>
<tr>
<td><code>rdio</code></td>
<td>Rdio</td>
Expand Down
7 changes: 6 additions & 1 deletion build/addon.xml
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<addon addon_id="s9e" title="s9e Media Pack" url="https://github.com/s9e/XenForoMediaBBCodes" version_id="20140529" version_string="201405290" install_callback_class="s9e_MediaBBCodes" install_callback_method="install">
<addon addon_id="s9e" title="s9e Media Pack" url="https://github.com/s9e/XenForoMediaBBCodes" version_id="20140530" version_string="201405300" install_callback_class="s9e_MediaBBCodes" install_callback_method="install">
<bb_code_media_sites>
<site media_site_id="abcnews" site_title="ABC News" site_url="http://abcnews.go.com/" match_is_regex="1" supported="1">
<match_urls>!abcnews\.go\.com/[^/]+/video/[^/]+-(?'id'\d+)!</match_urls>
Expand Down Expand Up @@ -138,6 +138,11 @@
@(?'id')//i\.mixcloud\.com/\w+$@</match_urls>
<embed_html><![CDATA[<iframe width="300" height="300" src="//www.mixcloud.com/widget/iframe/?feed=http%3A%2F%2Fwww.mixcloud.com%2F{$id}%2F&amp;embed_type=widget_standard" allowfullscreen="" frameborder="0" scrolling="no"></iframe>]]></embed_html>
</site>
<site media_site_id="nytimes" site_title="The New York Times Video" site_url="http://www.nytimes.com/video/" match_is_regex="1" supported="1">
<match_urls>!nytimes\.com/video/[a-z]+/[a-z]+/(?'id'\d+)!
!nytimes\.com/video/\d+/\d+/\d+/[a-z]+/(?'id'\d+)!</match_urls>
<embed_html><![CDATA[<iframe width="480" height="373" src="http://graphics8.nytimes.com/bcvideo/1.0/iframe/embed.html?videoId={$id}&amp;playerType=embed" allowfullscreen="" frameborder="0" scrolling="no"></iframe>]]></embed_html>
</site>
<site media_site_id="rdio" site_title="Rdio" site_url="http://www.rdio.com/" match_is_regex="1" supported="1" match_callback_class="s9e_MediaBBCodes" match_callback_method="matchRdio">
<match_urls>!rd\.io/./(?'id'\w+)!
!(?'id')rdio\.com/.*?(?:playlist|track)!</match_urls>
Expand Down
Empty file modified build/upload/library/s9e/MediaBBCodes.php 100644 → 100755
Empty file.
8 changes: 7 additions & 1 deletion www/configure.html

Large diffs are not rendered by default.

0 comments on commit 18d8860

Please sign in to comment.