mirror of https://github.com/calzoneman/sync.git
Apparently redirector is https sometimes
This commit is contained in:
parent
936c75a062
commit
fae1609a50
|
@ -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]),
|
||||
|
|
Loading…
Reference in New Issue