mirror of
https://codeberg.org/ashley/poke
synced 2025-04-06 09:38:00 +00:00
optimize code owo
This commit is contained in:
parent
18bb13b18e
commit
ae9e80b5e5
@ -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 New Issue
Block a user