dishtv channels parser ?fix
This commit is contained in:
1 parent
3c4fcf24a8
commit
a110337258
1 file changed
+4
-1
@@ -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',
|
||||
|
||||
Reference in new issue
Block a user