fixup! add support for an external videoplayback proxy
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 57s

This commit is contained in:
Fijxu 2024-12-15 18:32:42 -03:00
parent e39797cf49
commit 3430c98de1
Signed by: Fijxu
GPG key ID: 32C1DDF333EDA6A4
2 changed files with 1 additions and 3 deletions

View file

@ -96,7 +96,6 @@ dashManifest.get("/:videoId", async (c) => {
if (konfigStore.get("networking.ump") as boolean) {
dashUrl = dashUrl + "&ump=1" as unknown as URL;
}
console.log(dashUrl)
return dashUrl;
} else {
return dashUrl;

View file

@ -69,10 +69,9 @@ latestVersion.get("/", async (c) => {
} else if (selectedItagFormat) {
const itagUrl = selectedItagFormat[0].url as string;
const itagUrlParsed = new URL(itagUrl);
console.log(itagUrlParsed)
let urlToRedirect = itagUrlParsed.toString();
if (local) {
urlToRedirect = konfigStore.get("networking.external_videoplayback_proxy") as string ?? "" +
urlToRedirect = (konfigStore.get("networking.external_videoplayback_proxy") as string ?? "") +
itagUrlParsed.pathname + urlToRedirect.search +
"&host=" + itagUrlParsed.host;
}