mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-10 00:50:09 -04:00
Update mncvision.id
This commit is contained in:
parent
25d0cd4b88
commit
ec68186710
2 changed files with 1 additions and 10 deletions
|
@ -30,9 +30,6 @@ module.exports = {
|
|||
'Content-Type': 'multipart/form-data; boundary=X-EPG-BOUNDARY'
|
||||
}
|
||||
},
|
||||
logo({ channel }) {
|
||||
return `https://www.mncvision.id/userfiles/image/channel/channel_${channel.site_id}.png`
|
||||
},
|
||||
async parser({ content, date }) {
|
||||
const programs = []
|
||||
const items = parseItems(content)
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// node ./scripts/channels.js --config=./sites/mncvision.id/mncvision.id.config.js --output=./sites/mncvision.id/mncvision.id_id.channels.xml
|
||||
// npx epg-grabber --config=sites/mncvision.id/mncvision.id.config.js --channels=sites/mncvision.id/mncvision.id_id.channels.xml --output=.gh-pages/guides/id/mncvision.id.epg.xml --days=2
|
||||
|
||||
const { parser, url, request, logo } = require('./mncvision.id.config.js')
|
||||
const { parser, url, request } = require('./mncvision.id.config.js')
|
||||
const axios = require('axios')
|
||||
const dayjs = require('dayjs')
|
||||
const utc = require('dayjs/plugin/utc')
|
||||
|
@ -33,12 +33,6 @@ it('can generate valid request data', () => {
|
|||
expect(result._boundary).toBe('X-EPG-BOUNDARY')
|
||||
})
|
||||
|
||||
it('can get logo url', () => {
|
||||
expect(logo({ content, channel })).toBe(
|
||||
'https://www.mncvision.id/userfiles/image/channel/channel_203.png'
|
||||
)
|
||||
})
|
||||
|
||||
it('can parse response', done => {
|
||||
axios.get.mockImplementation(() =>
|
||||
Promise.resolve({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue