From 4ef3b34e5fee96f97687174006fd81b8142e1048 Mon Sep 17 00:00:00 2001 From: Ashley Date: Sun, 20 Feb 2022 20:40:18 +0300 Subject: [PATCH] Update server.js --- server.js | 9 --------- 1 file changed, 9 deletions(-) diff --git a/server.js b/server.js index f6353347..a1b60d94 100644 --- a/server.js +++ b/server.js @@ -15,11 +15,6 @@ app.get("/watch", async function(req, res) { var url = req.query.v; var uu = `https://www.youtube.com/watch?v=${url}`; - var opts = { - maxResults: 1, - key: process.env.yt - }; - const json = await fetch(`https://yt-proxy-api.herokuapp.com/get_player_info?v=${url}`) .then((res) => res.json()); @@ -38,10 +33,6 @@ app.get("/watch", async function(req, res) { app.get("/", function(req, res) { renderTemplate(res, req, "ytmain.ejs") }); - - - - app.get("/youtube/ara", async (req, res) => { const query = req.query.query