Commit e7ac0802 authored by Nigel McNie's avatar Nigel McNie
Browse files

Make youtube filter support 'cp' embeds.

parent 05a4e43b
......@@ -124,8 +124,8 @@ class PluginBlocktypeExternalvideo extends SystemBlocktype {
static $embedsources = array(
// www.youtube.com
array(
'match' => '#.*youtube\.com.*v(=|\/)([a-zA-Z0-9_-]+).*#',
'url' => 'http://www.youtube.com/v/$2'
'match' => '#.*youtube\.com.*(v|(cp))(=|\/)([a-zA-Z0-9_=-]+).*#',
'url' => 'http://www.youtube.com/$1/$4'
),
// video.google.com
array(
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment