? flashvideo-thumbnail.patch Index: flashvideo.module =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/flashvideo/flashvideo.module,v retrieving revision 1.73.2.111 diff -u -p -r1.73.2.111 flashvideo.module --- flashvideo.module 29 Jul 2009 01:17:58 -0000 1.73.2.111 +++ flashvideo.module 10 Aug 2009 13:45:06 -0000 @@ -413,7 +413,7 @@ function flashvideo_get_flashvars($video else { // They want to use the video thumbnail as the intro image. - $video['flashvars']['image'] = check_url(preg_replace("/\.flv|\.mp4/", ".jpg", $video['file'])); + $video['flashvars']['image'] = $video['thumbnail']; } } @@ -456,7 +456,7 @@ function flashvideo_get_flashvars($video // Set up the markup and actual data arrays. $markup = array('@video', '@thumbnail'); - $actual = array($video['file'], check_url(preg_replace("/\.flv|\.mp4/", ".jpg", $video['file']))); + $actual = array($video['file'], $video['thumbnail']); return str_replace($markup, $actual, $flashvars); } @@ -1999,6 +1999,7 @@ function flashvideo_get_video_object($no $video['width'] = (isset($params['width']) && $params['width'] > 0) ? $params['width'] : ''; $video['height'] = (isset($params['height']) && $params['height'] > 0) ? $params['height'] : ''; $video['flashvars'] = $params['flashvars']; + $video['thumbnail'] = flashvideo_get_thumbnail($node, $params, TRUE); // TRUE to fetch path only $video_file = NULL; // If they want an intro or outro video.