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:
parent
6599c4aba5
commit
ea94850d38
1 changed files with 10 additions and 3 deletions
13
server.js
13
server.js
|
@ -125,12 +125,15 @@ app.get("/watch", async function (req, res) {
|
||||||
* r = Recommended videos
|
* r = Recommended videos
|
||||||
* f = Recent videos from channel
|
* f = Recent videos from channel
|
||||||
* t = Piwik OptOut
|
* t = Piwik OptOut
|
||||||
|
* q = quality obv
|
||||||
*/
|
*/
|
||||||
var v = req.query.v;
|
var v = req.query.v;
|
||||||
var e = req.query.e;
|
var e = req.query.e;
|
||||||
var r = req.query.r;
|
var r = req.query.r;
|
||||||
var f = req.query.f;
|
var f = req.query.f;
|
||||||
var t = req.query.t;
|
var t = req.query.t;
|
||||||
|
var q = req.query.quality;
|
||||||
|
|
||||||
|
|
||||||
const video = await fetch(config.tubeApi + `video?v=${v}`);
|
const video = await fetch(config.tubeApi + `video?v=${v}`);
|
||||||
var fetching = await fetcher(v);
|
var fetching = await fetcher(v);
|
||||||
|
@ -140,9 +143,12 @@ app.get("/watch", async function (req, res) {
|
||||||
const k = JSON.parse(toJson(h));
|
const k = JSON.parse(toJson(h));
|
||||||
if (!v) res.redirect("/");
|
if (!v) res.redirect("/");
|
||||||
|
|
||||||
// video
|
//video
|
||||||
const url = `https://tube.kuylar.dev/proxy/media/${v}/22`
|
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
|
// encryption
|
||||||
|
|
||||||
const url_e = url + "?e="+ sha384(json.id) + sha384(json.Title) + sha384(json.Channel.id) + sha384(json.Channel.id) + "Piwik" + sha384(config.t_url)
|
const url_e = url + "?e="+ sha384(json.id) + sha384(json.Title) + sha384(json.Channel.id) + sha384(json.Channel.id) + "Piwik" + sha384(config.t_url)
|
||||||
|
@ -171,6 +177,7 @@ app.get("/watch", async function (req, res) {
|
||||||
isMobile:req.useragent.isMobile,
|
isMobile:req.useragent.isMobile,
|
||||||
tj: tj,
|
tj: tj,
|
||||||
r: r,
|
r: r,
|
||||||
|
qua:q,
|
||||||
f: f,
|
f: f,
|
||||||
t: config.t_url,
|
t: config.t_url,
|
||||||
optout: t,
|
optout: t,
|
||||||
|
|
Loading…
Reference in a new issue