mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-12 01:50:07 -04:00
Merge pull request #429 from iptv-org/update-directv-com-2
Update directv.com
This commit is contained in:
commit
381443ac3d
2 changed files with 7 additions and 3 deletions
|
@ -37,9 +37,13 @@ module.exports = {
|
||||||
|
|
||||||
return programs
|
return programs
|
||||||
},
|
},
|
||||||
async channels({ country }) {
|
async channels({ zip }) {
|
||||||
const html = await axios
|
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)
|
.then(r => r.data)
|
||||||
.catch(console.log)
|
.catch(console.log)
|
||||||
|
|
||||||
|
|
|
@ -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
|
// 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')
|
const { parser, url, logo } = require('./directv.com.config.js')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue