This commit is contained in:
Ashley 2022-08-21 15:28:35 +02:00
parent 5cd5489393
commit 1a772d5b78

View file

@ -135,6 +135,10 @@ app.get("/watch", async function (req, res) {
const video = await fetch(config.tubeApi + `video?v=${v}`);
const info = await fetch("http://ip-api.com/json/");
const n = await info.text();
const ip = JSON.parse(n);
var fetching = await fetcher(v);
const json = fetching.video.Player;
@ -185,6 +189,7 @@ app.get("/watch", async function (req, res) {
tj: tj,
r: r,
qua: q,
ip:ip,
f: f,
t: config.t_url,
optout: t,