mirror of https://github.com/preservetube/auto.git
5 latest videos per channel, which i think is fair
This commit is contained in:
parent
334b902365
commit
f07c4becf2
|
@ -90,7 +90,7 @@ async function getChannelVideos(id) {
|
||||||
})).json()
|
})).json()
|
||||||
videos.push(...page.relatedStreams)
|
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)
|
if (page.nextpage) await getNextPage(page.nextpage)
|
||||||
else return resolve(videos)
|
else return resolve(videos)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue