mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-10 10:18:26 +01: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;
|
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}/`
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue