Fix google drive links with \xkk in them

This commit is contained in:
calzoneman 2014-02-15 17:32:22 -06:00
parent 0abc71c8e9
commit 7ab1202617
1 changed files with 3 additions and 0 deletions

View File

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