mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-17 04:34:38 -05:00
optimize code owo
This commit is contained in:
parent
18bb13b18e
commit
ae9e80b5e5
1 changed files with 9 additions and 0 deletions
|
@ -158,15 +158,24 @@ module.exports = function (app, config, renderTemplate) {
|
|||
return null;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
var tj = await getChannelData(
|
||||
`https://invid-api.poketube.fun/api/v1/channels/videos/${ID}/?sort_by=${sort_by}${continuation}`
|
||||
);
|
||||
|
||||
if(tab === "shorts") {
|
||||
var shorts = await getChannelData(
|
||||
`https://invid-api.poketube.fun/api/v1/channels/${ID}/shorts?sort_by=${sort_by}${continuations}`
|
||||
);
|
||||
}
|
||||
|
||||
if(tab === "live") {
|
||||
var stream = await getChannelData(
|
||||
`https://invid-api.poketube.fun/api/v1/channels/${ID}/streams?sort_by=${sort_by}${continuationl}`
|
||||
);
|
||||
}
|
||||
|
||||
var c = await getChannelData(
|
||||
`https://invid-api.poketube.fun/api/v1/channels/community/${ID}/`
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue