Changeset 7286 for extensions/gvideo
- Timestamp:
- Oct 20, 2010, 12:23:38 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/gvideo/admin/add_page.php
r7284 r7286 65 65 if ($_POST['thumbnail'] == 'thumb_from_server' and fetchRemote($url, $source)) 66 66 { 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 } 69 71 } 70 72 return $video;
Note: See TracChangeset
for help on using the changeset viewer.