mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-22 22:37:56 +01:00
fix channels lmao
This commit is contained in:
parent
c8beda0f50
commit
cc425b7b97
1 changed files with 9 additions and 13 deletions
|
@ -159,26 +159,22 @@ module.exports = function (app, config, renderTemplate) {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
var tjPromise = getChannelData(
|
||||||
var tj = await getChannelData(
|
|
||||||
`https://invid-api.poketube.fun/api/v1/channels/videos/${ID}/?sort_by=${sort_by}${continuation}`
|
`https://invid-api.poketube.fun/api/v1/channels/videos/${ID}/?sort_by=${sort_by}${continuation}`
|
||||||
);
|
);
|
||||||
|
var shortsPromise = getChannelData(
|
||||||
if(tab === "shorts") {
|
|
||||||
var shorts = await getChannelData(
|
|
||||||
`https://invid-api.poketube.fun/api/v1/channels/${ID}/shorts?sort_by=${sort_by}${continuations}`
|
`https://invid-api.poketube.fun/api/v1/channels/${ID}/shorts?sort_by=${sort_by}${continuations}`
|
||||||
);
|
);
|
||||||
}
|
var streamPromise = getChannelData(
|
||||||
|
|
||||||
if(tab === "live") {
|
|
||||||
var stream = await 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 cPromise = getChannelData(
|
||||||
|
|
||||||
var c = await getChannelData(
|
|
||||||
`https://invid-api.poketube.fun/api/v1/channels/community/${ID}/`
|
`https://invid-api.poketube.fun/api/v1/channels/community/${ID}/`
|
||||||
);
|
);
|
||||||
|
var tj = await tjPromise;
|
||||||
|
var shorts = await shortsPromise;
|
||||||
|
var stream = await streamPromise;
|
||||||
|
var c = await cPromise;
|
||||||
|
|
||||||
cache[ID] = {
|
cache[ID] = {
|
||||||
result: {
|
result: {
|
||||||
|
|
Loading…
Reference in a new issue