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/static/images/%7Badd%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);