Skip to content

Commit

Permalink
Added CNN
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshyPHP committed Oct 29, 2013
1 parent c0c2f3c commit 2bedc70
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 2 deletions.
5 changes: 5 additions & 0 deletions README.md
Expand Up @@ -31,6 +31,11 @@ Media BB Codes for XenForo, imported from [s9e\TextFormatter](https://github.com
<td>CBS News Video</td>
<td>http://www.cbsnews.com/video/watch/?id=50156501n</td>
</tr>
<tr>
<td><code>cnn</code></td>
<td>CNN</td>
<td>http://edition.cnn.com/video/data/2.0/video/showbiz/2013/10/25/spc-preview-savages-stephen-king-thor.cnn.html<br/>http://us.cnn.com/video/data/2.0/video/bestoftv/2013/10/23/vo-nr-prince-george-christening-arrival.cnn.html</td>
</tr>
<tr>
<td><code>colbertnation</code></td>
<td>Colbert Nation</td>
Expand Down
4 changes: 4 additions & 0 deletions build/addon.xml
Expand Up @@ -19,6 +19,10 @@
<match_urls>!cbsnews\.com/video/watch/\?id=(?'id'[0-9]+)!</match_urls>
<embed_html><![CDATA[<object type="application/x-shockwave-flash" typemustmatch="" width="425" height="279" data="http://cnettv.cnet.com/av/video/cbsnews/atlantis2/cbsnews_player_embed.swf"><param name="allowfullscreen" value="true"/><param name="flashvars" value="si=254&amp;contentValue={$id}&amp;shareUrl=http://www.cbsnews.com/video/watch/?id={$id}n"/><embed type="application/x-shockwave-flash" src="http://cnettv.cnet.com/av/video/cbsnews/atlantis2/cbsnews_player_embed.swf" width="425" height="279" allowfullscreen="" flashvars="si=254&amp;contentValue={$id}&amp;shareUrl=http://www.cbsnews.com/video/watch/?id={$id}n"/></object>]]></embed_html>
</site>
<site media_site_id="cnn" site_title="CNN" site_url="http://edition.cnn.com/video/" match_is_regex="1">
<match_urls>!cnn\.com/video/data/2\.0/video/(?'id'.*\.cnn)!</match_urls>
<embed_html><![CDATA[<object type="application/x-shockwave-flash" typemustmatch="" width="416" height="234" data="http://i.cdn.turner.com/cnn/.element/apps/cvp/3.0/swf/cnn_embed_2x_container.swf?site=cnn&amp;profile=desktop&amp;context=embedwww&amp;videoId={$id}&amp;contentId={$id}"><param name="allowfullscreen" value="true"/><embed type="application/x-shockwave-flash" src="http://i.cdn.turner.com/cnn/.element/apps/cvp/3.0/swf/cnn_embed_2x_container.swf?site=cnn&amp;profile=desktop&amp;context=embedwww&amp;videoId={$id}&amp;contentId={$id}" width="416" height="234" allowfullscreen=""/></object>]]></embed_html>
</site>
<site media_site_id="colbertnation" site_title="Colbert Nation" site_url="http://www.colbertnation.com/" match_is_regex="1" embed_html_callback_class="s9e_MediaBBCodes" embed_html_callback_method="embed" match_callback_class="s9e_MediaBBCodes" match_callback_method="matchColbertnation">
<match_urls>!colbertnation\.com/[^/]*(?:collection|video)s/!</match_urls>
<embed_html><![CDATA[<iframe width="512" height="288" src="http://media.mtvnservices.com/embed/{$id}" allowfullscreen="" frameborder="0" scrolling="no"></iframe>]]></embed_html>
Expand Down
8 changes: 7 additions & 1 deletion www/configure.html

Large diffs are not rendered by default.

0 comments on commit 2bedc70

Please sign in to comment.