diff --git a/lib/get-info.js b/lib/get-info.js index 6459ad40..0e2ec11e 100644 --- a/lib/get-info.js +++ b/lib/get-info.js @@ -922,8 +922,6 @@ function vimeoWorkaround(id, cb) { var parse = function (data) { var i = data.indexOf("{\"cdn_url\""); if (i === -1) { - /* TODO possibly send an error message? */ - //Logger.errlog.log("Vimeo workaround failed (i=-1): http://vimeo.com/" + id); setImmediate(function () { cb({}); }); @@ -933,6 +931,12 @@ function vimeoWorkaround(id, cb) { var json = data.substring(i, j+1); try { json = JSON.parse(json); + if (!json.request.files) { + setImmediate(function () { + cb({}); + }); + return; + } var codec = json.request.files.codecs[0]; var files = json.request.files[codec]; setImmediate(function () {