mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-26 17:58:17 +01:00
use ChannelFirstVideoObject
This commit is contained in:
parent
d4a7a2cded
commit
cd9786f699
1 changed files with 7 additions and 1 deletions
|
@ -321,11 +321,17 @@ module.exports = function (app, config, renderTemplate) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const ChannelFirstVideoObject = await fetch(
|
||||||
|
`${config.invapi}/videos/${tj.videos[0].videoId}`
|
||||||
|
)
|
||||||
|
.then((res) => res.text())
|
||||||
|
.then((txt) => getJson(txt));
|
||||||
|
|
||||||
renderTemplate(res, req, "channel.ejs", {
|
renderTemplate(res, req, "channel.ejs", {
|
||||||
ID,
|
ID,
|
||||||
tab,
|
tab,
|
||||||
shorts,
|
shorts,
|
||||||
firstVideo:tj.videos[0],
|
firstVideo:ChannelFirstVideoObject,
|
||||||
j: boutJson,
|
j: boutJson,
|
||||||
sort: sort_by,
|
sort: sort_by,
|
||||||
stream,
|
stream,
|
||||||
|
|
Loading…
Reference in a new issue