1
0
mirror of https://github.com/webrecorder/pywb.git synced 2025-03-15 08:04:49 +01:00

video: skip videoinfo responses that have no formats, and fallback to

retry handler
remove extra log
This commit is contained in:
Ilya Kreymer 2014-12-09 10:48:08 -08:00
parent 336289b337
commit 8090bf9a9a

View File

@ -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];
}