1
0
Fork 0
mirror of https://codeberg.org/ashley/poke.git synced 2024-11-17 08:14:38 -05:00

remove old video downloader

This commit is contained in:
Ashley 2022-12-20 07:46:46 +00:00
parent 36a8bec791
commit b8b5b068ee

View file

@ -40,16 +40,11 @@ module.exports = function (app, config, renderTemplate) {
if (!v) res.redirect("/"); if (!v) res.redirect("/");
var fetching = await fetcher(v); 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 json = fetching.video.Player;
const engagement = fetching.engagement; const engagement = fetching.engagement;
renderTemplate(res, req, "download.ejs", { renderTemplate(res, req, "download.ejs", {
url: url,
engagement: engagement, engagement: engagement,
k: k, k: k,
video: json, video: json,