1
0
Fork 0
mirror of https://codeberg.org/ashley/poke.git synced 2024-11-17 04:14:39 -05:00

optimize code owo

This commit is contained in:
Ashley 2023-05-21 20:20:27 +00:00
parent 18bb13b18e
commit ae9e80b5e5

View file

@ -158,15 +158,24 @@ module.exports = function (app, config, renderTemplate) {
return null; return null;
} }
}; };
var tj = await 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}`
); );
if(tab === "shorts") {
var shorts = await getChannelData( 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}`
); );
}
if(tab === "live") {
var stream = await getChannelData( 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 c = await 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}/`
); );