Fix google drive links with \xkk in them

This commit is contained in:
calzoneman 2014-02-15 17:33:39 -06:00
parent 5a4b18a1e7
commit f7bf915f87

View file

@ -650,6 +650,9 @@ var Getters = {
var data = m[1];
data = data.substring(data.indexOf(",") + 1);
data = data.replace(/'(.*?)'([:\,\}\]])/g, "\"$1\"$2");
data = data.replace(/\\x(\d*)/g, function (sub, s1) {
return String.fromCharCode(parseInt(s1, 16));
});
data = "[" + data + "]";
var js = JSON.parse(data);
var title = js[0].title;