diff --git a/lib/get-info.js b/lib/get-info.js index f280dd97..2c438482 100644 --- a/lib/get-info.js +++ b/lib/get-info.js @@ -729,7 +729,7 @@ function VimeoIsADoucheCopter(id, cb) { }; var parse = function (data) { - var i = data.indexOf("a={"); + var i = data.indexOf("b={"); var j = data.indexOf("};", i); var json = data.substring(i+2, j+1); try { @@ -761,6 +761,8 @@ function VimeoIsADoucheCopter(id, cb) { } else if (data.indexOf("This video does not exist.") !== -1) { cb({}); return; + } else if (data.indexOf("Because of its privacy settings, this video cannot be played here.") !== -1) { + cb({}); } Logger.errlog.log("Vimeo workaround error: "); Logger.errlog.log(e);