mirror of
https://github.com/webrecorder/pywb.git
synced 2025-03-24 06:59:52 +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
|
// end special case
|
||||||
|
|
||||||
do_replace_video(elem, videoinfo);
|
if (videoinfo.formats) {
|
||||||
} else if (!no_retry) {
|
do_replace_video(elem, videoinfo);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Retry with current page as last resort
|
||||||
|
if (!no_retry) {
|
||||||
check_replacement(elem, wbinfo.url, true);
|
check_replacement(elem, wbinfo.url, true);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@ -167,13 +173,11 @@ __wbvidrw = (function() {
|
|||||||
if (!width) {
|
if (!width) {
|
||||||
width = "100%";
|
width = "100%";
|
||||||
}
|
}
|
||||||
console.log(width);
|
|
||||||
|
|
||||||
var height = elem.height;
|
var height = elem.height;
|
||||||
if (!height) {
|
if (!height) {
|
||||||
height = "100%";
|
height = "100%";
|
||||||
}
|
}
|
||||||
console.log(height);
|
|
||||||
|
|
||||||
return [width, height];
|
return [width, height];
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user