mirror of
https://github.com/iptv-org/epg
synced 2025-12-16 10:26:41 -05:00
Fix excessive page while fetching channels.
Signed-off-by: Toha <tohenk@yahoo.com>
This commit is contained in:
@@ -107,7 +107,7 @@ module.exports = {
|
||||
await doFetch(queues, (url, res) => {
|
||||
if (!pages && res.data.total) {
|
||||
pages = Math.ceil(res.data.total / pageLimit)
|
||||
while (page <= pages) {
|
||||
while (page < pages) {
|
||||
queues.push(f(++page))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user