1
Fork 0

Update server.js

This commit is contained in:
Ashley 2022-02-20 20:40:18 +03:00 committed by GitHub
parent fa2af0ae7a
commit 4ef3b34e5f

View file

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