From fae1609a502888b57cd5fbd5914a3c7ab7fffbf7 Mon Sep 17 00:00:00 2001 From: calzoneman Date: Tue, 12 Aug 2014 18:34:37 -0500 Subject: [PATCH] Apparently redirector is https sometimes --- lib/get-info.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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]),