Merge branch 'master' of https://github.com/iptv-org/epg
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user