mirror of
https://github.com/SukkaW/Surge.git
synced 2025-12-13 17:50:34 +08:00
Create fuck_emby
This commit is contained in:
parent
e07baaec33
commit
2ec1e385c6
51
Script/fuck_emby
Normal file
51
Script/fuck_emby
Normal file
@ -0,0 +1,51 @@
|
|||||||
|
const url = $request.url;
|
||||||
|
const newHeaders = {
|
||||||
|
"Crack": "KS",
|
||||||
|
"Access-Control-Allow-Origin": "*",
|
||||||
|
"Access-Control-Allow-Headers": "*",
|
||||||
|
"Access-Control-Allow-Method": "*",
|
||||||
|
"Access-Control-Allow-Credentials": "true"
|
||||||
|
};
|
||||||
|
let obj = {};
|
||||||
|
|
||||||
|
if (url.includes('/admin/service/registration/validateDevice')) {
|
||||||
|
obj = {
|
||||||
|
"cacheExpirationDays": 365,
|
||||||
|
"message": "Device Valid",
|
||||||
|
"resultCode": "GOOD"
|
||||||
|
};
|
||||||
|
} else if (url.includes('/admin/service/appstore/register')) {
|
||||||
|
obj = {
|
||||||
|
"featId":"",
|
||||||
|
"registered":true,
|
||||||
|
"expDate":"2099-01-01",
|
||||||
|
"key":""
|
||||||
|
};
|
||||||
|
} else if (url.includes('/admin/service/registration/validate')) {
|
||||||
|
obj = {
|
||||||
|
"featId":"",
|
||||||
|
"registered":true,
|
||||||
|
"expDate":"2099-01-01",
|
||||||
|
"key":""
|
||||||
|
};
|
||||||
|
} else if (url.includes('/admin/service/registration/getStatus')){
|
||||||
|
obj = {
|
||||||
|
"planType":"Sukka",
|
||||||
|
"deviceStatus":"",
|
||||||
|
"subscriptions":[]
|
||||||
|
};
|
||||||
|
} else if (url.includes('/admin/service/supporter/retrievekey')){
|
||||||
|
obj = {
|
||||||
|
"Success":false,
|
||||||
|
"ErrorMessage":"Supporter not found"
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
const newBody = JSON.stringify(obj);
|
||||||
|
|
||||||
|
const myResponse = {
|
||||||
|
headers: newHeaders, // Optional.
|
||||||
|
body: newBody // Optional.
|
||||||
|
};
|
||||||
|
|
||||||
|
$done(myResponse);
|
||||||
Loading…
x
Reference in New Issue
Block a user