mirror of
https://github.com/iptv-org/epg
synced 2025-12-18 19:36:58 -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) => {
|
await doFetch(queues, (url, res) => {
|
||||||
if (!pages && res.data.total) {
|
if (!pages && res.data.total) {
|
||||||
pages = Math.ceil(res.data.total / pageLimit)
|
pages = Math.ceil(res.data.total / pageLimit)
|
||||||
while (page <= pages) {
|
while (page < pages) {
|
||||||
queues.push(f(++page))
|
queues.push(f(++page))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user