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

resolution les goo

This commit is contained in:
Ashley 2022-08-08 19:48:56 +03:00 committed by GitHub
parent 6599c4aba5
commit ea94850d38
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -125,12 +125,15 @@ app.get("/watch", async function (req, res) {
* r = Recommended videos
* f = Recent videos from channel
* t = Piwik OptOut
* q = quality obv
*/
var v = req.query.v;
var e = req.query.e;
var r = req.query.r;
var f = req.query.f;
var t = req.query.t;
var q = req.query.quality;
const video = await fetch(config.tubeApi + `video?v=${v}`);
var fetching = await fetcher(v);
@ -140,8 +143,11 @@ app.get("/watch", async function (req, res) {
const k = JSON.parse(toJson(h));
if (!v) res.redirect("/");
// video
const url = `https://tube.kuylar.dev/proxy/media/${v}/22`
//video
if(!q) url = `https://tube.kuylar.dev/proxy/media/${v}/22`
if(q === "medium") {
var url = `https://tube.kuylar.dev/proxy/media/${v}/18`
}
// encryption
@ -171,6 +177,7 @@ app.get("/watch", async function (req, res) {
isMobile:req.useragent.isMobile,
tj: tj,
r: r,
qua:q,
f: f,
t: config.t_url,
optout: t,