210 actually
This commit is contained in:
parent
2506e20125
commit
64c9cac254
|
@ -59,7 +59,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 >= 150) resolve(videos)
|
if (videos.length >= 210) resolve(videos)
|
||||||
if (page.nextpage) await getNextPage(page.nextpage)
|
if (page.nextpage) await getNextPage(page.nextpage)
|
||||||
else resolve(videos)
|
else resolve(videos)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue