Merge pull request #429 from iptv-org/update-directv-com-2

Update directv.com
This commit is contained in:
Aleksandr Statciuk 2022-01-20 19:57:13 +03:00 committed by GitHub
commit 381443ac3d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 3 deletions

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)

View file

@ -1,4 +1,4 @@
// node ./scripts/commands/parse-channels.js --config=./sites/directv.com/directv.com.config.js --output=./sites/directv.com/directv.com_us.channels.xml
// node ./scripts/commands/parse-channels.js --config=./sites/directv.com/directv.com.config.js --output=./sites/directv.com/directv.com_us-ny.channels.xml --set=zip:10001
// npx epg-grabber --config=sites/directv.com/directv.com.config.js --channels=sites/directv.com/directv.com_us.channels.xml --output=guide.xml --days=2
const { parser, url, logo } = require('./directv.com.config.js')