diff -urp flashvideo/flashvideo.admin.inc flashvideo_altered/flashvideo.admin.inc
--- flashvideo/flashvideo.admin.inc 2009-07-26 06:17:04.000000000 +0200
+++ flashvideo_altered/flashvideo.admin.inc 2009-10-23 14:35:45.000000000 +0200
@@ -354,6 +354,7 @@ function flashvideo_settings_form() {
- @video - String - Placeholder for the path of the video to play.
- @thumbnail - String - Placeholder for the path of the thumbnail of the video.
+ - @filename - String - The name of the video file without the path.
Example: file=@video&image=@thumbnail will play the video using its thumbnail as the intro image.'),
'#required' => FALSE
);
@@ -678,4 +679,4 @@ function _system_settings_form($form) {
$form['#submit'][] = 'system_settings_form_submit';
$form['#theme'] = 'system_settings_form';
return $form;
-}
\ No newline at end of file
+}
diff -urp flashvideo/flashvideo.module flashvideo_altered/flashvideo.module
--- flashvideo/flashvideo.module 2009-08-17 00:08:30.000000000 +0200
+++ flashvideo_altered/flashvideo.module 2009-10-23 15:00:45.000000000 +0200
@@ -455,8 +455,9 @@ 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'])));
+ $markup = array('@video', '@thumbnail', '@filename');
+ $video['file'] = str_replace('@filename', basename($video['file']), $video['file']);
+ $actual = array($video['file'], check_url(preg_replace("/\.flv|\.mp4/", ".jpg", $video['file'])), basename($video['file']));
return str_replace($markup, $actual, $flashvars);
}
@@ -2620,4 +2621,4 @@ function _flashvideo_load($node) {
$files[$file->fid] = $file;
}
return $files;
-}
\ No newline at end of file
+}