Update server.js

This commit is contained in:
Ashley 2022-06-25 12:04:01 +03:00 committed by GitHub
parent ad98ea0471
commit b4775ff872

View file

@ -59,6 +59,7 @@ app.get("/watch", async function (req, res) {
const getColors = require('get-image-colors') const getColors = require('get-image-colors')
var e = req.query.e; var e = req.query.e;
var r = req.query.r; var r = req.query.r;
const { toJson } = require("xml2json"); const { toJson } = require("xml2json");
const video = await fetch( `https://tube.kuylar.dev/api/video?v=${v}`); const video = await fetch( `https://tube.kuylar.dev/api/video?v=${v}`);
const h = await video.text(); const h = await video.text();