From 38134bb908f6c222269f3f690a37d5a4fc0617e0 Mon Sep 17 00:00:00 2001 From: Ashley Date: Tue, 20 Dec 2022 07:46:46 +0000 Subject: [PATCH] remove old video downloader --- src/libpoketube/init/pages-channel-and-download.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/libpoketube/init/pages-channel-and-download.js b/src/libpoketube/init/pages-channel-and-download.js index aa36cbc6..7d167f5b 100644 --- a/src/libpoketube/init/pages-channel-and-download.js +++ b/src/libpoketube/init/pages-channel-and-download.js @@ -40,16 +40,11 @@ module.exports = function (app, config, renderTemplate) { if (!v) res.redirect("/"); var fetching = await fetcher(v); - const j = fetching.video.Player.Formats.Format, - j_ = Array.isArray(j) ? j[j.length - 1] : j; - let url; - if (j_.URL != undefined) url = j_.URL; const json = fetching.video.Player; const engagement = fetching.engagement; renderTemplate(res, req, "download.ejs", { - url: url, engagement: engagement, k: k, video: json,