edit the plugin file video-thumbnails.php
and replace the default Vimeo section with:
// Vimeo
if($new_thumbnail==null) {
// Standard embed code
preg_match('#<object[^>]+>.+?https://vimeo.com/moogaloop.swf\?clip_id=([A-Za-z0-9\-_]+)&.+?</object>#s', $markup, $matches);
if(!isset($matches[1])) {
preg_match('#<object[^>]+.+?https://vimeo.com/moogaloop.swf\?clip_id=([A-Za-z0-9\-_]+)&.+?</object>#s', $markup, $matches);
}
// Find Vimeo embedded with iframe code
if(!isset($matches[1])) {
preg_match('#https://player.vimeo.com/video/([0-9]+)#s', $markup, $matches);
}
// If we still haven't found anything, check for Vimeo embedded with JR_embed
if(!isset($matches[1])) {
preg_match('#\[vimeo id=([A-Za-z0-9\-_]+)]#s', $markup, $matches);
}
// If we still haven't found anything, check for Vimeo URL
if(!isset($matches[1])) {
preg_match('#https://w?w?w?.?vimeo.com/moogaloop.swf\?clip_id=([A-Za-z0-9\-_]+)#s', $markup, $matches);
}
if(!isset($matches[1])) {
preg_match('#https://w?w?w?.?vimeo.com/([A-Za-z0-9\-_]+)#s', $markup, $matches);
}
// If we still haven't found anything, check for Vimeo shortcode
if(!isset($matches[1])) {
preg_match('#\[vimeo clip_id="([A-Za-z0-9\-_]+)"[^>]*]#s', $markup, $matches);
}
if(!isset($matches[1])) {
preg_match('#\[vimeo video_id="([A-Za-z0-9\-_]+)"[^>]*]#s', $markup, $matches);
}
if(!isset($matches[1])) {
preg_match('#\[vimeo ([A-Za-z0-9\-_]+)*]#s', $markup, $matches);
}
//echo '<pre>MATCH:';print_r($matches[1]);echo '</pre>';
// Now if we've found a Vimeo ID, let's set the thumbnail URL
if(isset($matches[1])) {
$vimeo_thumbnail = getVimeoInfo($matches[1], $info = 'thumbnail_large');
if(isset($vimeo_thumbnail)) {
$new_thumbnail = $vimeo_thumbnail;
}
}
}