Permalink
Browse files

added timetoast, youku, snotr; checked more OGP sites and added to list

  • Loading branch information...
1 parent 9a4932d commit 7c883cbb9890cdfa45e4b395be718fa078e3baaf @starfishmod committed Apr 16, 2012
Showing with 31 additions and 5 deletions.
  1. +16 −1 README.md
  2. +15 −4 jquery.oembed.js
View
17 README.md
@@ -104,6 +104,13 @@ Current 3rd party sources include:
http://www.aniboom.com/animation-video/187178/The-Flower/
* Comedy Central - OGP
http://www.comedycentral.com/video-clips/qdybr3/cc-studios-tiny-hands-tiny-hands--glove-shopping
+* snotr - embedded
+ http://www.snotr.com/video/9125/Fun_at_work
+* zapiks - OGP
+ http://www.zapiks.com/teva-slopestyle-2012.html
+* youku - embedded
+ http://v.youku.com/v_show/id_XMzgxNzY3NTU2.html
+
####Audio
@@ -125,6 +132,7 @@ Current 3rd party sources include:
http://audioboo.fm/boos/710079-geofencing-and-the-future
* Spotify - OGP YQL
http://open.spotify.com/album/1YwzJz7CrV9fd9Qeb6oo1d
+
#### Photo
@@ -176,6 +184,8 @@ Current 3rd party sources include:
http://www.glogster.com/lacocom/glog/g-6m025lt047et8od1f3iona0
* chart.ly - embedded
http://chart.ly/v3eemh9
+* twitrpix - OGP
+ http://twitrpix.com/l39c
####Rich
@@ -260,6 +270,12 @@ Current 3rd party sources include:
https://banters.com/p/55840
* bigthink - OGP
http://bigthink.com/series/43542
+* wirewax - OGP
+ http://www.wirewax.com/5001608
+* whosay - OGP
+ http://www.whosay.com/EvaLongoria/photos/159328
+* timetoast - embedded
+ http://www.timetoast.com/timelines/225819
---
@@ -279,5 +295,4 @@ Current 3rd party sources include:
* http://robohash.org/
-
Plus a lot more :) Feel free to submit
View
19 jquery.oembed.js
@@ -152,8 +152,10 @@
var flashvars = embedProvider.embedtag.flashvars || '';
var tag = embedProvider.embedtag.tag || 'embed';
var width = embedProvider.embedtag.width || 'auto';
+ var nocache = embedProvider.embedtag.nocache || 0;
var height = embedProvider.embedtag.height || 'auto';
- var src =externalUrl.replace(embedProvider.templateRegex,embedProvider.apiendpoint)+'&jqoemcache='+rand(5);
+ var src =externalUrl.replace(embedProvider.templateRegex,embedProvider.apiendpoint);
+ if(!nocache) src += '&jqoemcache='+rand(5);
if (embedProvider.apikey) src = src.replace('_APIKEY_', settings.apikeys[embedProvider.name]);
@@ -359,7 +361,12 @@
{templateRegex:/.*animation-video\/(\d+).*/ , embedtag : {width:594,height: 334}}),
new $.fn.oembed.OEmbedProvider("vzaar", "video", ["vzaar\\.com/videos/.+","vzaar.tv/.+"],"http://view.vzaar.com/$1/player?",
- {templateRegex:/.*\/(\d+).*/, embedtag : {tag:'iframe',width:576,height: 324 }}),
+ {templateRegex:/.*\/(\d+).*/, embedtag : {tag:'iframe',width:576,height: 324 }}),
+ new $.fn.oembed.OEmbedProvider("snotr", "video", ["snotr\\.com/video/.+"],"http://www.snotr.com/embed/$1",
+ {templateRegex:/.*\/(\d+).*/, embedtag : {tag:'iframe',width:400,height: 330, nocache:1 }}),
+
+ new $.fn.oembed.OEmbedProvider("youku", "video", ["v.youku.com/v_show/id_.+"],"http://player.youku.com/player.php/sid/$1/v.swf",
+ {templateRegex:/.*id_(.+)\.html.*/, embedtag : {width:480,height:400, nocache:1 }}),
new $.fn.oembed.OEmbedProvider("embedr", "video", ["embedr\\.com/playlist/.+"],"http://embedr.com/swf/slider/$1/425/520/default/false/std?",
{templateRegex:/.*playlist\/([^\/]+).*/, embedtag : {width:425,height: 520}}),
@@ -369,8 +376,8 @@
new $.fn.oembed.OEmbedProvider("hulu", "video", ["hulu\\.com/watch/.*"], "http://www.hulu.com/api/oembed.json"),
new $.fn.oembed.OEmbedProvider("ustream", "video", ["ustream\\.tv/recorded/.*"], "http://www.ustream.tv/oembed",{useYQL:'json'}),
new $.fn.oembed.OEmbedProvider("vodpod", "video", ["vodpod.com/watch/.*"], "http://vodpod.com/oembed.js",{useYQL:'json'}),
- new $.fn.oembed.OEmbedProvider("vimeo", "video", ["http:\/\/www\.vimeo\.com\/groups\/.*\/videos\/.*", "http:\/\/www\.vimeo\.com\/.*", "http:\/\/vimeo\.com\/groups\/.*\/videos\/.*", "http:\/\/vimeo\.com\/.*"], "http://vimeo.com/api/oembed.json"),
- new $.fn.oembed.OEmbedProvider("dailymotion", "video", ["dailymotion\\.com/.+"],'http://www.dailymotion.com/services/oembed'),
+ new $.fn.oembed.OEmbedProvider("vimeo", "video", ["http:\/\/www\.vimeo\.com\/groups\/.*\/videos\/.*", "http:\/\/www\.vimeo\.com\/.*", "http:\/\/vimeo\.com\/groups\/.*\/videos\/.*", "http:\/\/vimeo\.com\/.*"], "http://vimeo.com/api/oembed.json"),
+ new $.fn.oembed.OEmbedProvider("dailymotion", "video", ["dailymotion\\.com/.+"],'http://www.dailymotion.com/services/oembed'),
new $.fn.oembed.OEmbedProvider("5min", "video", ["www\\.5min\\.com/.+"], 'http://api.5min.com/oembed.xml',{useYQL:'xml'}),
new $.fn.oembed.OEmbedProvider("National Film Board of Canada", "video", ["nfb\\.ca/film/.+"],'http://www.nfb.ca/remote/services/oembed/',{useYQL:'json'}),
new $.fn.oembed.OEmbedProvider("qik", "video", ["qik\\.com/\\w+"], 'http://qik.com/api/oembed.json',{useYQL:'json'}),
@@ -513,6 +520,10 @@
new $.fn.oembed.OEmbedProvider("linkedin", "rich", ["linkedin.com/pub/.+"],"https://www.linkedin.com/cws/member/public_profile?public_profile_url=$1&format=inline&isFramed=true",
{templateRegex:/(.*)/ ,embedtag : {tag: 'iframe', width:'368px',height: 'auto'}
}),
+
+ new $.fn.oembed.OEmbedProvider("timetoast", "rich", ["timetoast.com/timelines/[0-9]+"],"http://www.timetoast.com/flash/TimelineViewer.swf?passedTimelines=$1",
+ {templateRegex:/.*timelines\/([0-9]*)/ ,embedtag : { width:550,height: 400,nocache:1}
+ }),
new $.fn.oembed.OEmbedProvider("pastebin", "rich", ["pastebin\\.com/[\\S]{8}"],"http://pastebin.com/embed_iframe.php?i=$1",
{templateRegex:/.*\/(\S{8}).*/ ,embedtag : {tag: 'iframe', width:'100%',height: 'auto'}
}),

0 comments on commit 7c883cb

Please sign in to comment.