mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-22 10:47:48 +01:00
hehe taggy
This commit is contained in:
parent
c8ca77fd95
commit
91c53d0811
1 changed files with 24 additions and 0 deletions
|
@ -153,6 +153,28 @@ module.exports = function (app, config, renderTemplate) {
|
||||||
var tj = " "
|
var tj = " "
|
||||||
}
|
}
|
||||||
|
|
||||||
|
try {
|
||||||
|
//videos
|
||||||
|
const b = await modules
|
||||||
|
.fetch(`https://inv.zzls.xyz/api/v1/channels/${ID}/shorts?sort_by=${req.query.sort_by || "newest"}` + continuation)
|
||||||
|
.then((res) => res.text());
|
||||||
|
|
||||||
|
var shorts = await getJson(b);
|
||||||
|
} catch {
|
||||||
|
var shorts = " "
|
||||||
|
}
|
||||||
|
|
||||||
|
try {
|
||||||
|
//videos
|
||||||
|
const c = await modules
|
||||||
|
.fetch(`https://inv.zzls.xyz/api/v1/channels/${ID}/streams?sort_by=${req.query.sort_by || "newest"}` + continuation)
|
||||||
|
.then((res) => res.text());
|
||||||
|
|
||||||
|
var stream = await getJson(c);
|
||||||
|
} catch {
|
||||||
|
var stream = " "
|
||||||
|
}
|
||||||
|
|
||||||
const community = await modules
|
const community = await modules
|
||||||
.fetch(`${config.invapi}/channels/community/${ID}/`)
|
.fetch(`${config.invapi}/channels/community/${ID}/`)
|
||||||
.then((res) => res.text());
|
.then((res) => res.text());
|
||||||
|
@ -188,8 +210,10 @@ module.exports = function (app, config, renderTemplate) {
|
||||||
renderTemplate(res, req, "channel.ejs", {
|
renderTemplate(res, req, "channel.ejs", {
|
||||||
ID,
|
ID,
|
||||||
tab,
|
tab,
|
||||||
|
shorts,
|
||||||
j: k,
|
j: k,
|
||||||
sort:req.query.sort_by,
|
sort:req.query.sort_by,
|
||||||
|
stream,
|
||||||
tj,
|
tj,
|
||||||
c,
|
c,
|
||||||
convert,
|
convert,
|
||||||
|
|
Loading…
Reference in a new issue