Ignore:
Timestamp:
May 20, 2009, 1:28:58 AM (15 years ago)
Author:
patdenice
Message:

Thumbnails upload work again with google video and vimeo.
Wideo now work with lightbox plugin.
Create revision 2.0.g.

File:
1 edited

Legend:

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

    r3296 r3307  
    1717    {
    1818      @preg_match("#thumbnailUrl\\\\x3d(http://.*/ThumbnailServer.*)\\\\x26#", $source, $thumb_url);
    19       //$video['thumb_url'] = @str_replace(array('\x3d', '\x26'), array('=', '&'), $thumb_url[1]);
    2019      $video['thumb_url'] = @urldecode($thumb_url[1]);
     20      $video['thumb_url'] = @str_replace(array('\x3d', '\x26'), array('=', '&'), $video['thumb_url']);
    2121    }
    2222    return $video;
     
    6363    if ($_POST['thumbnail'] == 'thumb_from_server' and fetchRemote($url, $source))
    6464    {
    65       @preg_match('#link rel="image_src" href="(http://images.vimeo.com/.*?)"#', $source, $matches);
     65      @preg_match('#link rel="image_src" href="(http://.*?)"#', $source, $matches);
    6666      $video['thumb_url'] = @str_replace('160.jpg', '200.jpg', $matches[1]);
    6767    }
Note: See TracChangeset for help on using the changeset viewer.