GUI-STUDIO commited on
Commit ·
bfd78bc
1
Parent(s): 598e931
cleanup
Browse files
src/sub-router/proxima.ts
CHANGED
|
@@ -60,7 +60,7 @@ sub_router.get(
|
|
| 60 |
|
| 61 |
const season = decoded_proxy_commands?.season;
|
| 62 |
const episode = decoded_proxy_commands?.episode;
|
| 63 |
-
const
|
| 64 |
|
| 65 |
const og_endpoint = decoded_proxy_endpoint.href;
|
| 66 |
|
|
@@ -90,7 +90,9 @@ sub_router.get(
|
|
| 90 |
return await proxy(upstream_url, {
|
| 91 |
headers: send_headers,
|
| 92 |
method: decoded_proxy_commands?.method || "GET",
|
| 93 |
-
body: decoded_proxy_commands?.upstream_payload
|
|
|
|
|
|
|
| 94 |
});
|
| 95 |
} catch (err: any) {
|
| 96 |
if (err?.code === "ConnectionRefused" || err?.code === "ECONNREFUSED") {
|
|
@@ -117,7 +119,9 @@ sub_router.get(
|
|
| 117 |
return await proxy(ECONNREFUSED_fallback.toString(), {
|
| 118 |
headers: send_headers,
|
| 119 |
method: decoded_proxy_commands?.method || "GET",
|
| 120 |
-
body: decoded_proxy_commands?.upstream_payload
|
|
|
|
|
|
|
| 121 |
});
|
| 122 |
}
|
| 123 |
}
|
|
|
|
| 60 |
|
| 61 |
const season = decoded_proxy_commands?.season;
|
| 62 |
const episode = decoded_proxy_commands?.episode;
|
| 63 |
+
const picture_quality = decoded_proxy_commands?.picture_quality;
|
| 64 |
|
| 65 |
const og_endpoint = decoded_proxy_endpoint.href;
|
| 66 |
|
|
|
|
| 90 |
return await proxy(upstream_url, {
|
| 91 |
headers: send_headers,
|
| 92 |
method: decoded_proxy_commands?.method || "GET",
|
| 93 |
+
body: decoded_proxy_commands?.upstream_payload
|
| 94 |
+
? JSON.stringify(decoded_proxy_commands.upstream_payload)
|
| 95 |
+
: undefined
|
| 96 |
});
|
| 97 |
} catch (err: any) {
|
| 98 |
if (err?.code === "ConnectionRefused" || err?.code === "ECONNREFUSED") {
|
|
|
|
| 119 |
return await proxy(ECONNREFUSED_fallback.toString(), {
|
| 120 |
headers: send_headers,
|
| 121 |
method: decoded_proxy_commands?.method || "GET",
|
| 122 |
+
body: decoded_proxy_commands?.upstream_payload
|
| 123 |
+
? JSON.stringify(decoded_proxy_commands.upstream_payload)
|
| 124 |
+
: undefined
|
| 125 |
});
|
| 126 |
}
|
| 127 |
}
|