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:
parent
336289b337
commit
8090bf9a9a
@ -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];
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user