dishtv channels parser ?fix

This commit is contained in:
StrangeDrVN
2026-02-04 21:09:15 +05:30
parent 3c4fcf24a8
commit a110337258

View File

@@ -76,8 +76,11 @@ module.exports = {
for (let item of queue) {
const data = await axios(item)
.then(r => r.data)
.catch(console.error)
.catch(err => {
console.error(`Error fetching page ${item.data.get('pageNum')}: ${err.message}`)
})
if (!data) continue
data.programDetailsByChannel.forEach(channel => {
channels.push({
lang: 'en',