mirror of https://github.com/calzoneman/sync.git
Fix google drive links with \xkk in them
This commit is contained in:
parent
0abc71c8e9
commit
7ab1202617
|
@ -648,6 +648,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;
|
||||
|
|
Loading…
Reference in New Issue