mirror of https://github.com/preservetube/auto.git
uppin it up
This commit is contained in:
parent
54713eeadf
commit
6e2ebdc7a4
|
@ -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 >= 60) resolve(videos)
|
if (videos.length >= 120) 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