Fixed google video thumbnail parsing pattern
authorAlan J. Pippin <ajp@pippins.net>
Sun, 1 Feb 2009 20:42:23 +0000 (13:42 -0700)
committerAlan J. Pippin <ajp@pippins.net>
Sun, 1 Feb 2009 20:42:23 +0000 (13:42 -0700)
ItemAddEmbedVideo.inc

index 4e16f42b64a17da624bdd5cc76ed2447a935a551..bfb8daab44028f339ca27a5d45fcf621bc1b8829 100644 (file)
@@ -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);