Apparently redirector is https sometimes
This commit is contained in:
parent
936c75a062
commit
fae1609a50
|
|
@ -841,7 +841,11 @@ var Getters = {
|
||||||
|
|
||||||
return line.match(/videoplayback/);
|
return line.match(/videoplayback/);
|
||||||
}).map(function (line) {
|
}).map(function (line) {
|
||||||
var parts = line.match(/\[(\d+),(\d+),(\d+),("http:\/\/redirector.*?")\]/);
|
var parts = line.match(/\[(\d+),(\d+),(\d+),("https?:\/\/redirector.*?")\]/);
|
||||||
|
if (!parts) {
|
||||||
|
return cb("Video entry did not match expected format: " + line, null);
|
||||||
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
format: parseInt(parts[1]),
|
format: parseInt(parts[1]),
|
||||||
width: parseInt(parts[2]),
|
width: parseInt(parts[2]),
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue