changing how many vids show on a channel page

This commit is contained in:
localhost 2023-07-06 16:19:36 +02:00
parent d84c0fb2d4
commit 7159811489
1 changed files with 1 additions and 1 deletions

View File

@ -63,7 +63,7 @@ async function getChannelVideos(id) {
const page = await (await fetch(`${instance}/nextpage/channel/${id}?nextpage=${encodeURIComponent(payload)}`)).json() const page = await (await fetch(`${instance}/nextpage/channel/${id}?nextpage=${encodeURIComponent(payload)}`)).json()
videos.push(...page.relatedStreams) videos.push(...page.relatedStreams)
if (videos.length >= 210) resolve(videos) if (videos.length >= 60) resolve(videos)
if (page.nextpage) await getNextPage(page.nextpage) if (page.nextpage) await getNextPage(page.nextpage)
else resolve(videos) else resolve(videos)
} }