mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-10 15:08:26 +01:00
fix encryption owo
This commit is contained in:
parent
c133288d37
commit
d302e4291d
1 changed files with 25 additions and 18 deletions
|
@ -119,24 +119,32 @@ module.exports = function (app, config, renderTemplate) {
|
||||||
let url;
|
let url;
|
||||||
if (j_.URL != undefined) url = j_.URL;
|
if (j_.URL != undefined) url = j_.URL;
|
||||||
|
|
||||||
// json response
|
if (json) {
|
||||||
const re = {
|
if (json.Title) {
|
||||||
main: {
|
if (json.Channel.Name) {
|
||||||
video_id: sha384(json.id),
|
if (json.Description) {
|
||||||
channel: sha384(json.Channel.Name),
|
// json response
|
||||||
title: sha384(json.Title),
|
const re = {
|
||||||
date: sha384(btoa(Date.now()).toString()),
|
main: {
|
||||||
},
|
video_id: sha384(json.id),
|
||||||
info: {
|
channel: sha384(json.Channel.Name),
|
||||||
desc: sha384(json.Description),
|
title: sha384(json.Title),
|
||||||
},
|
date: sha384(btoa(Date.now()).toString()),
|
||||||
video: {
|
},
|
||||||
title: sha384(json.Title),
|
info: {
|
||||||
url: sha384(url),
|
desc: sha384(json.Description),
|
||||||
},
|
},
|
||||||
};
|
video: {
|
||||||
|
title: sha384(json.Title),
|
||||||
|
url: sha384(url),
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
res.json(re);
|
res.json(re);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
app.get("/watch", async function (req, res) {
|
app.get("/watch", async function (req, res) {
|
||||||
|
@ -333,7 +341,6 @@ module.exports = function (app, config, renderTemplate) {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
app.get("/music", async function (req, res) {
|
app.get("/music", async function (req, res) {
|
||||||
/*
|
/*
|
||||||
* QUERYS
|
* QUERYS
|
||||||
|
|
Loading…
Reference in a new issue