Videoembed

By Firtina Last update Feb 11, 2009 — Installed 2,967,474 times.

Daily Motion Support

in
Subscribe to Daily Motion Support 3 posts, 2 voices



Null man Scriptwright

Here is the code for to add Dailymotion.com support:

Look at at newer posts for updated code.
{
n:'Dailymotion',
l:'^http:\/\/([a-zA-Z0-9]+\.|)dailymotion\.com\/video\/x([a-zA-Z0-9_-]+)*',
args:[
['match','/video/([a-zA-Z0-9_-]+)',1],
],
width:420,
height:339,
embed:'http://www.dailymotion.com/swf/{0}',
},

You might also want to add these excludes:

// @exclude http://*.dailymotion.*
// @exclude http://dailymotion.*

 
Psychederic User

Well there is also dailymotion's video permalink :


{
n:'Dailymotion',
l:'^http:\/\/([a-zA-Z0-9]+\.|)dailymotion\.com\/swf\/([a-zA-Z0-9_-]+)*',
args:[
['match','/swf/([a-zA-Z0-9_-]+)',1],
],
width:420,
height:339,
embed:'http://www.dailymotion.com/swf/{0}',
},

 
Null man Scriptwright

Thanks, but that doesn't work as a replacement.

do you mean to say this should also be added in?

In which case the combination of yours and mine would have (swf|video) and look like this:


{
n:'Dailymotion',
l:'^http:\/\/([a-zA-Z0-9]+\.|)dailymotion\.com\/(swf|video)\/([a-zA-Z0-9_-]+)*',
args:[
['match','/swf/([a-zA-Z0-9_-]+)',1],
],
width:420,
height:339,
embed:'http://www.dailymotion.com/swf/{0}',
},

With the excludes of:


// @exclude http://*.dailymotion.*
// @exclude http://dailymotion.*

Thanks!

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel