From 9bfc47a198922c6832c434b020d38eaa5e0ed9fa Mon Sep 17 00:00:00 2001 From: Emilien <4016501+unixfox@users.noreply.github.com> Date: Sat, 9 Nov 2024 15:07:00 +0100 Subject: [PATCH] remove bunch of verbose console.log --- src/routes/invidious_routes/dashManifest.ts | 29 +-------------------- 1 file changed, 1 insertion(+), 28 deletions(-) diff --git a/src/routes/invidious_routes/dashManifest.ts b/src/routes/invidious_routes/dashManifest.ts index 8d92bc3..eca23ee 100644 --- a/src/routes/invidious_routes/dashManifest.ts +++ b/src/routes/invidious_routes/dashManifest.ts @@ -53,29 +53,7 @@ dashManifest.get("/:videoId", async (c) => { ) { return true; } else if ( - url.searchParams.has("xtags") - ) { - if ( - i.itag == - Number(url.searchParams.get("itag")) && - url.searchParams.get("xtags")?.includes( - i.language || "", - ) && - i.is_drc === url.search.includes("drc") - ) { - return true; - } else if ( - i.itag == - Number(url.searchParams.get("itag")) && - i.is_drc === url.search.includes("drc") - ) { - return true; - } else { - return true; - } - } else if ( - i.itag == - Number(url.searchParams.get("itag")) && + i.itag == Number(url.searchParams.get("itag")) && i.is_drc === url.search.includes("drc") ) { return true; @@ -83,11 +61,6 @@ dashManifest.get("/:videoId", async (c) => { }); if (selectedItagFormat) { let dashUrl = new URL(selectedItagFormat[0].url as string); - if (url.toString().includes("140")) { - console.log(url.toString()); - console.log(dashUrl.toString()); - console.log(selectedItagFormat[0]); - } if (local) { // Can't create URL type without host part dashUrl =