From 2558a87e96ff49f94f20e0a0cc61f486abc3cd04 Mon Sep 17 00:00:00 2001 From: calzoneman Date: Mon, 27 Jan 2014 18:04:04 -0600 Subject: [PATCH] Fix vimeo --- lib/get-info.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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);