Apparently redirector is https sometimes

This commit is contained in:
calzoneman 2014-08-12 18:34:37 -05:00
parent 936c75a062
commit fae1609a50
1 changed files with 5 additions and 1 deletions

View File

@ -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]),