fixup! add support for an external videoplayback proxy
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 57s
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 57s
This commit is contained in:
parent
e39797cf49
commit
3430c98de1
2 changed files with 1 additions and 3 deletions
|
@ -96,7 +96,6 @@ dashManifest.get("/:videoId", async (c) => {
|
||||||
if (konfigStore.get("networking.ump") as boolean) {
|
if (konfigStore.get("networking.ump") as boolean) {
|
||||||
dashUrl = dashUrl + "&ump=1" as unknown as URL;
|
dashUrl = dashUrl + "&ump=1" as unknown as URL;
|
||||||
}
|
}
|
||||||
console.log(dashUrl)
|
|
||||||
return dashUrl;
|
return dashUrl;
|
||||||
} else {
|
} else {
|
||||||
return dashUrl;
|
return dashUrl;
|
||||||
|
|
|
@ -69,10 +69,9 @@ latestVersion.get("/", async (c) => {
|
||||||
} else if (selectedItagFormat) {
|
} else if (selectedItagFormat) {
|
||||||
const itagUrl = selectedItagFormat[0].url as string;
|
const itagUrl = selectedItagFormat[0].url as string;
|
||||||
const itagUrlParsed = new URL(itagUrl);
|
const itagUrlParsed = new URL(itagUrl);
|
||||||
console.log(itagUrlParsed)
|
|
||||||
let urlToRedirect = itagUrlParsed.toString();
|
let urlToRedirect = itagUrlParsed.toString();
|
||||||
if (local) {
|
if (local) {
|
||||||
urlToRedirect = konfigStore.get("networking.external_videoplayback_proxy") as string ?? "" +
|
urlToRedirect = (konfigStore.get("networking.external_videoplayback_proxy") as string ?? "") +
|
||||||
itagUrlParsed.pathname + urlToRedirect.search +
|
itagUrlParsed.pathname + urlToRedirect.search +
|
||||||
"&host=" + itagUrlParsed.host;
|
"&host=" + itagUrlParsed.host;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue