remove bunch of verbose console.log

This commit is contained in:
Emilien 2024-11-09 15:07:00 +01:00
parent f60450d547
commit 9bfc47a198

View file

@ -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 =