mirror of
https://github.com/iptv-org/epg
synced 2026-05-08 18:36:59 -04:00
dishtv channels parser ?fix
This commit is contained in:
@@ -76,8 +76,11 @@ module.exports = {
|
|||||||
for (let item of queue) {
|
for (let item of queue) {
|
||||||
const data = await axios(item)
|
const data = await axios(item)
|
||||||
.then(r => r.data)
|
.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 => {
|
data.programDetailsByChannel.forEach(channel => {
|
||||||
channels.push({
|
channels.push({
|
||||||
lang: 'en',
|
lang: 'en',
|
||||||
|
|||||||
Reference in New Issue
Block a user