forked from nikleechan/eb1-script
-
Notifications
You must be signed in to change notification settings - Fork 0
/
unlock_emby.js
37 lines (36 loc) · 885 Bytes
/
unlock_emby.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
35
36
37
let body = $response.body;
if($request.url.includes("/admin/service/appstore/register"))
{
body =
`
{"featId": "","registered": true,"expDate": "2099-01-01","key": ""}
`
} else if($request.url.includes("/emby/Plugins/SecurityInfo"))
{
body =
`
{SupporterKey: "", IsMBSupporter: true}
`
} else if($request.url.includes("/admin/service/registration/validateDevice"))
{
body =
`
{"cacheExpirationDays": 365,"message": "Device Valid","resultCode": "GOOD"}
`
} else if($request.url.includes("/admin/service/registration/validate"))
{
body =
`
{"featId":"","registered":true,"expDate":"2099-01-01","key":""}
`
}else if($request.url.includes("/admin/service/registration/getStatus"))
{
body =
`
{"deviceStatus":"0","planType":"Lifetime","subscriptions":{}}
`
}
$done({
status : 200,
body : body
});