Update directv.com.config.js

This commit is contained in:
Aleksandr Statciuk 2022-01-20 19:56:25 +03:00
parent 84fc15f07c
commit 81f0982bdc

View file

@ -37,9 +37,13 @@ module.exports = {
return programs
},
async channels({ country }) {
async channels({ zip }) {
const html = await axios
.get(`https://www.directv.com/guide`)
.get(`https://www.directv.com/guide`, {
headers: {
cookie: `dtve-prospect-zip=${zip}`
}
})
.then(r => r.data)
.catch(console.log)