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
1 changed files with 3 additions and 0 deletions

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;