5 latest videos per channel, which i think is fair

This commit is contained in:
localhost 2024-03-12 19:50:07 +01:00
parent 334b902365
commit f07c4becf2
1 changed files with 1 additions and 1 deletions

View File

@ -90,7 +90,7 @@ async function getChannelVideos(id) {
})).json()
videos.push(...page.relatedStreams)
if (videos.length >= 30) return resolve(videos)
if (videos.length >= 30) return resolve(videos.slice(0,5))
if (page.nextpage) await getNextPage(page.nextpage)
else return resolve(videos)
}