Fix vimeo
This commit is contained in:
parent
f7932166b2
commit
2558a87e96
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue