Changeset 7286 for extensions/gvideo


Ignore:
Timestamp:
Oct 20, 2010, 12:23:38 AM (14 years ago)
Author:
plg
Message:

bug 1943 fixed: new search pattern for thumbnail in HTML code from vimeo.com

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/gvideo/admin/add_page.php

    r7284 r7286  
    6565    if ($_POST['thumbnail'] == 'thumb_from_server' and fetchRemote($url, $source))
    6666    {
    67       @preg_match('#link rel="image_src" href="(http://.*?)"#', $source, $matches);
    68       $video['thumb_url'] = @str_replace('160.jpg', '200.jpg', $matches[1]);
     67      if (preg_match('#meta property="og:image" content="(http://.*?)"#', $source, $matches))
     68      {
     69        $video['thumb_url'] = str_replace('160.jpg', '200.jpg', $matches[1]);
     70      }
    6971    }
    7072    return $video;
Note: See TracChangeset for help on using the changeset viewer.