Can you provide an example of a video it didn’t work for?
Thread Starter
vl4d
(@vl4d)
<iframe width="1280" height="720" src="https://docs.google.com/file/d/0B7sET1E_FuL-VjZXUE9rQTNGRG8/preview" frameborder="0" allowfullscreen></iframe>
I can see what the problem is, and will have a fix in the next update. If you’d like to go ahead and fix it yourself, you can edit the file in wp-content/plugins/video-thumbnails/php/providers/class-googledrive-thumbnails.php by replacing the section that starts with
// Regex strings
with this
// Regex strings
public $regexes = array(
'#(?:https?:)?//docs\.google\.com/(?:a/[^/]+/)?file/d/([A-Za-z0-9\-_]+)/preview#', // iFrame URL
'#(?:https?:)?//video\.google\.com/get_player\?docid=([A-Za-z0-9\-_]+)#', // Flash URL
'#<param value="(?:[^"]+)?docid=([A-Za-z0-9\-_]+)(?:[^"]+)?" name="flashvars">#', // Flash (YouTube player)
);
Just released version 2.6.3 with this fix.