Fixed vimeo thumbnail processing code
authorAlan Pippin <apippin@pippins.net>
Sun, 3 Oct 2010 03:27:38 +0000 (21:27 -0600)
committerAlan J. Pippin <ajp@pippins.net>
Sun, 3 Oct 2010 03:27:38 +0000 (21:27 -0600)
ItemAddEmbedVideo.inc

index 820fe6f5f2d0e0ac393698803ee5ac0388c5b92e..22986988fd3957466a24a292f67d18a4ddd98951 100644 (file)
@@ -804,7 +804,7 @@ class ItemAddEmbedVideo extends ItemAddPlugin {
               $title=$matches[1];
 
               /* Extract the thumbnail URL from the webpage contents */
-              preg_match('/"videothumbnail" href="(.+?)"/i',
+              preg_match('/"og:image" content="(.+?)"/i',
                          $contents, $matches);
               $thumbnail=$matches[1];