Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Sutherland Boswell

    (@sutherlandboswell)

    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>

    Plugin Author Sutherland Boswell

    (@sutherlandboswell)

    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)
    	);
    Plugin Author Sutherland Boswell

    (@sutherlandboswell)

    Just released version 2.6.3 with this fix.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘google drive "No video thumbnail for this post."’ is closed to new replies.