forked from jpcnmm/Scripting
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Lightroom.js
34 lines (34 loc) · 936 Bytes
/
Lightroom.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
body = $response.body.replace(/while.{7}\n/, "");
let obj = JSON.parse(body);
obj.entitlement.status="subscriber";
obj.current_subs={
"product_id": "lightroom",
"store": "adobe",
"purchase_date": "2019-10-10T16:32:10.254954Z",
"sao": {
"inpkg_CCES": "0",
"inpkg_CCLE": "1",
"inpkg_CCSN": "0",
"inpkg_CCSV": "0",
"inpkg_LCCC": "0",
"inpkg_LPES": "0",
"inpkg_LRBRL": "0",
"inpkg_LRMAC": "0",
"inpkg_LRMC": "0",
"inpkg_LRMP": "0",
"inpkg_LRTB": "0",
"inpkg_PHLT": "0",
"inpkg_PHLT2": "0",
"inpkg_PLES": "0",
"storage_quota": "100"
}
};
obj.entitlement.storage={
"used": 0,
"limit": 1154487209165,
"display_limit": 1099511627776,
"warn": 992137445376
};
obj.avatar.placeholder=true;
body = JSON.stringify(obj);
$done({body});