mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-10 10:58:25 +01:00
add ChannelINVPromise :3
This commit is contained in:
parent
6b18a988d5
commit
840d8836f5
1 changed files with 7 additions and 1 deletions
|
@ -172,6 +172,9 @@ module.exports = function (app, config, renderTemplate) {
|
||||||
var streamPromise = getChannelData(
|
var streamPromise = getChannelData(
|
||||||
`https://invid-api.poketube.fun/api/v1/channels/${ID}/streams?sort_by=${sort_by}${continuationl}`
|
`https://invid-api.poketube.fun/api/v1/channels/${ID}/streams?sort_by=${sort_by}${continuationl}`
|
||||||
);
|
);
|
||||||
|
var ChannelINVPromise = getChannelData(
|
||||||
|
`https://invid-api.poketube.fun/api/v1/channels/${ID}/`
|
||||||
|
);
|
||||||
var cPromise = getChannelData(
|
var cPromise = getChannelData(
|
||||||
`https://invid-api.poketube.fun/api/v1/channels/community/${ID}/`
|
`https://invid-api.poketube.fun/api/v1/channels/community/${ID}/`
|
||||||
);
|
);
|
||||||
|
@ -179,6 +182,7 @@ module.exports = function (app, config, renderTemplate) {
|
||||||
var shorts = await shortsPromise;
|
var shorts = await shortsPromise;
|
||||||
var stream = await streamPromise;
|
var stream = await streamPromise;
|
||||||
var c = await cPromise;
|
var c = await cPromise;
|
||||||
|
var cinv = await ChannelINVPromise;
|
||||||
|
|
||||||
cache[ID] = {
|
cache[ID] = {
|
||||||
result: {
|
result: {
|
||||||
|
@ -186,6 +190,7 @@ module.exports = function (app, config, renderTemplate) {
|
||||||
shorts,
|
shorts,
|
||||||
stream,
|
stream,
|
||||||
c,
|
c,
|
||||||
|
cinv,
|
||||||
boutJson,
|
boutJson,
|
||||||
},
|
},
|
||||||
timestamp: Date.now(),
|
timestamp: Date.now(),
|
||||||
|
@ -209,6 +214,7 @@ module.exports = function (app, config, renderTemplate) {
|
||||||
stream,
|
stream,
|
||||||
tj,
|
tj,
|
||||||
c,
|
c,
|
||||||
|
cinv,
|
||||||
convert,
|
convert,
|
||||||
turntomins,
|
turntomins,
|
||||||
dnoreplace,
|
dnoreplace,
|
||||||
|
|
Loading…
Reference in a new issue