From: Alan J. Pippin Date: Sun, 1 Feb 2009 20:42:23 +0000 (-0700) Subject: Fixed google video thumbnail parsing pattern X-Git-Tag: 1_1_3~2 X-Git-Url: http://git.pippins.net/embedvideo/.git/%22%22.%24thumbnail.%22/%7Bview%7D?a=commitdiff_plain;h=f7553a85847b1a40cf9d348ebbc2d27956fa8ac1;p=embedvideo%2F.git Fixed google video thumbnail parsing pattern --- diff --git a/ItemAddEmbedVideo.inc b/ItemAddEmbedVideo.inc index 4e16f42..bfb8daa 100644 --- a/ItemAddEmbedVideo.inc +++ b/ItemAddEmbedVideo.inc @@ -331,7 +331,7 @@ class ItemAddEmbedVideo extends ItemAddPlugin { } /* Extract the thumbnail URL from the webpage contents */ - preg_match('/thumbnail: \'(http:\/\/.*?\/ThumbnailServer2.+?)\'/i', + preg_match('/\'(http:\/\/.*?\/ThumbnailServer2.+?)\'/i', $contents, $matches); $thumbnail=$matches[1]; $thumbnail=preg_replace("/\\\\x26/","&",$thumbnail);