From ebb91849449105a39440733964fa9a09447af3f6 Mon Sep 17 00:00:00 2001 From: Ilya Kreymer Date: Tue, 4 Aug 2015 08:45:12 -0700 Subject: [PATCH] vidrw: don't replace video with generic swf entry, if present, fixes #124 --- pywb/static/vidrw.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pywb/static/vidrw.js b/pywb/static/vidrw.js index 95c464f6..ae8987b0 100644 --- a/pywb/static/vidrw.js +++ b/pywb/static/vidrw.js @@ -330,7 +330,8 @@ __wbvidrw = (function() { } } - if (!videoinfo.formats && videoinfo.url && videoinfo.ext && videoinfo.format_id) { + if (!videoinfo.formats && videoinfo.url && videoinfo.ext && videoinfo.format_id && + !(videoinfo.ext == "swf" && videoinfo.format_id == "0")) { videoinfo.formats = [{ext: videoinfo.ext, url: videoinfo.url, format_id: videoinfo.format_id