summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--js/lightbox_video.js11
1 files changed, 7 insertions, 4 deletions
diff --git a/js/lightbox_video.js b/js/lightbox_video.js
index fa2dd58..516790a 100644
--- a/js/lightbox_video.js
+++ b/js/lightbox_video.js
@@ -25,10 +25,13 @@ var Lightvideo = {
}
else {
Lightbox.videoId = href;
- href = Lightbox.flvPlayer + '?file=' + href;
- if (Lightbox.flvFlashvars.length) {
- variables = Lightbox.flvFlashvars;
- href = href + '&' + Lightbox.flvFlashvars;
+ variables = '';
+ if (!href.match(/\.swf$/i)) {
+ href = Lightbox.flvPlayer + '?file=' + href;
+ if (Lightbox.flvFlashvars.length) {
+ variables = Lightbox.flvFlashvars;
+ href = href + '&' + Lightbox.flvFlashvars;
+ }
}
Lightvideo.createEmbed(href, "flvplayer", "#ffffff", variables);