From 8090bf9a9a01f0ecb92ff93ab37d0b276b23d341 Mon Sep 17 00:00:00 2001 From: Ilya Kreymer Date: Tue, 9 Dec 2014 10:48:08 -0800 Subject: [PATCH] video: skip videoinfo responses that have no formats, and fallback to retry handler remove extra log --- pywb/static/vidrw.js | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/pywb/static/vidrw.js b/pywb/static/vidrw.js index 3112fcc7..30534a8e 100644 --- a/pywb/static/vidrw.js +++ b/pywb/static/vidrw.js @@ -145,8 +145,14 @@ __wbvidrw = (function() { } // end special case - do_replace_video(elem, videoinfo); - } else if (!no_retry) { + if (videoinfo.formats) { + do_replace_video(elem, videoinfo); + return; + } + } + + // Retry with current page as last resort + if (!no_retry) { check_replacement(elem, wbinfo.url, true); } }; @@ -167,13 +173,11 @@ __wbvidrw = (function() { if (!width) { width = "100%"; } - console.log(width); var height = elem.height; if (!height) { height = "100%"; } - console.log(height); return [width, height]; }