Wondering if anyone can help me.
Vimeo have recently starting https://vimeo.com/ as their default url.
I thought I'd modify Subs-Aeva-Sites.php to detect this, and changed the vimeo section to the following:
array(
'id' => 'vimeo',
'title' => 'Vimeo',
'website' => 'http://www.vimeo.com',
'type' => 'pop',
'added' => '<4.0',
// http://vimeo.com/45084
'pattern' => 'http://(?:www\.)?vimeo\.com/(\d{1,12})',
'movie' => 'http://vimeo.com/moogaloop.swf?clip_id=$2&server=vimeo.com&fullscreen=1&show_title=1&show_byline=1&show_portrait=0&color=01AAEA',
'size' => array(640, 360),
'fix-html-pattern' => '<object [^>]*>\s{0,3}<param name="allowfullscreen" value="true" />\s{0,3}<param name="allowscriptaccess" value="always" />\s{0,3}<param name="movie" value="http://vimeo\.com/moogaloop\.swf\?clip_id=(\d{1,12})[^<>]*?>.*?</object>(?:<p><a href="http://vimeo\.com.*?</a>.*?</a>.*?</a>\.</p>)?',
'fix-html-url' => 'http://www.vimeo.com/$1',
'lookup-title' => true,
'lookup-title-skip' => true,
),
array(
'id' => 'vimeos',
'title' => 'Vimeo (secure)',
'website' => 'https://www.vimeo.com',
'type' => 'pop',
'added' => '<4.0',
// https://vimeo.com/45084
'pattern' => 'https://(?:www\.)?vimeo\.com/(\d{1,12})',
'movie' => 'https://vimeo.com/moogaloop.swf?clip_id=$2&server=vimeo.com&fullscreen=1&show_title=1&show_byline=1&show_portrait=0&color=01AAEA',
'size' => array(640, 360),
'fix-html-pattern' => '<object [^>]*>\s{0,3}<param name="allowfullscreen" value="true" />\s{0,3}<param name="allowscriptaccess" value="always" />\s{0,3}<param name="movie" value="https://vimeo\.com/moogaloop\.swf\?clip_id=(\d{1,12})[^<>]*?>.*?</object>(?:<p><a href="https://vimeo\.com.*?</a>.*?</a>.*?</a>\.</p>)?',
'fix-html-url' => 'https://www.vimeo.com/$1',
'lookup-title' => true,
'lookup-title-skip' => true,
),
The first array declaration is the original Vimeo code, I just duplicated it to what I thought would be the appropriate code for the new https:// urls.
However, this doesn't work, the https:// links aren't embedding at all. I have activated "Vimeo (secure)" in the list of sites.
Anyone know why this doesn't work?