upping the downloading limit

This commit is contained in:
localhost 2023-10-08 10:02:23 +02:00
parent a2b437a752
commit ee9b542984
1 changed files with 1 additions and 1 deletions

View File

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