diff --git a/lib/get-info.js b/lib/get-info.js index 0e2ec11e..4f89e0fd 100644 --- a/lib/get-info.js +++ b/lib/get-info.js @@ -841,7 +841,11 @@ var Getters = { return line.match(/videoplayback/); }).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 { format: parseInt(parts[1]), width: parseInt(parts[2]),