mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-10 00:50:09 -04:00
Update dishtv.in
This commit is contained in:
parent
6d47472b13
commit
2ba75f690d
2 changed files with 1 additions and 14 deletions
|
@ -21,12 +21,6 @@ module.exports = {
|
|||
}
|
||||
}
|
||||
},
|
||||
logo({ content }) {
|
||||
const data = parseContent(content)
|
||||
const $ = cheerio.load(data)
|
||||
|
||||
return $(`img.chnl-logo`).attr('src')
|
||||
},
|
||||
parser: function ({ content, channel, date }) {
|
||||
let programs = []
|
||||
const data = parseContent(content)
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
// npx epg-grabber --config=sites/dishtv.in/dishtv.in.config.js --channels=sites/dishtv.in/dishtv.in_in.channels.xml --output=.gh-pages/guides/in/dishtv.in.epg.xml --days=2
|
||||
|
||||
const { parser, url, logo, request } = require('./dishtv.in.config.js')
|
||||
const { parser, url, request } = require('./dishtv.in.config.js')
|
||||
const dayjs = require('dayjs')
|
||||
const utc = require('dayjs/plugin/utc')
|
||||
const customParseFormat = require('dayjs/plugin/customParseFormat')
|
||||
|
@ -26,13 +26,6 @@ it('can generate valid request data', () => {
|
|||
})
|
||||
})
|
||||
|
||||
it('can get logo url', () => {
|
||||
const result = logo({ content })
|
||||
expect(result).toBe(
|
||||
'http://imagesdishtvd2h.whatsonindia.com/dasimages/channel/landscape/360x270/hiyj8ndf.png'
|
||||
)
|
||||
})
|
||||
|
||||
it('can parse response', () => {
|
||||
const result = parser({ date, channel, content })
|
||||
expect(result).toMatchObject([
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue