From 4eff3187220ea24ed150ee7c2155cb34cc74cc03 Mon Sep 17 00:00:00 2001 From: Toha Date: Mon, 13 Jan 2025 14:11:12 +0700 Subject: [PATCH] Fix excessive page while fetching channels. Signed-off-by: Toha --- sites/dsmart.com.tr/dsmart.com.tr.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sites/dsmart.com.tr/dsmart.com.tr.config.js b/sites/dsmart.com.tr/dsmart.com.tr.config.js index 21197032..4a188b62 100644 --- a/sites/dsmart.com.tr/dsmart.com.tr.config.js +++ b/sites/dsmart.com.tr/dsmart.com.tr.config.js @@ -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)) } }