mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-09 16:40:07 -04:00
Update siba.com.co
This commit is contained in:
parent
8a8b96af29
commit
90a5eaeb22
2 changed files with 1 additions and 12 deletions
|
@ -18,11 +18,6 @@ module.exports = {
|
||||||
return params
|
return params
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
logo({ content, channel }) {
|
|
||||||
const data = parseContent(content, channel)
|
|
||||||
|
|
||||||
return data && data.logo ? `http://cdn-std-1.sibasa.netdna-cdn.com/co/${data.logo}` : null
|
|
||||||
},
|
|
||||||
parser: function ({ content, channel }) {
|
parser: function ({ content, channel }) {
|
||||||
let programs = []
|
let programs = []
|
||||||
const items = parseItems(content, channel)
|
const items = parseItems(content, channel)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
// npx epg-grabber --config=sites/siba.com.co/siba.com.co.config.js --channels=sites/siba.com.co/siba.com.co_co.channels.xml --output=.gh-pages/guides/co/siba.com.co.epg.xml --days=2
|
// npx epg-grabber --config=sites/siba.com.co/siba.com.co.config.js --channels=sites/siba.com.co/siba.com.co_co.channels.xml --output=.gh-pages/guides/co/siba.com.co.epg.xml --days=2
|
||||||
|
|
||||||
const { parser, url, request, logo } = require('./siba.com.co.config.js')
|
const { parser, url, request } = require('./siba.com.co.config.js')
|
||||||
const dayjs = require('dayjs')
|
const dayjs = require('dayjs')
|
||||||
const utc = require('dayjs/plugin/utc')
|
const utc = require('dayjs/plugin/utc')
|
||||||
const customParseFormat = require('dayjs/plugin/customParseFormat')
|
const customParseFormat = require('dayjs/plugin/customParseFormat')
|
||||||
|
@ -32,12 +32,6 @@ it('can generate valid request data', () => {
|
||||||
expect(result.has('chn')).toBe(true)
|
expect(result.has('chn')).toBe(true)
|
||||||
})
|
})
|
||||||
|
|
||||||
it('can get logo url', () => {
|
|
||||||
expect(logo({ content, channel })).toBe(
|
|
||||||
'http://cdn-std-1.sibasa.netdna-cdn.com/co/7c4b9e8566a6e867d1db4c7ce845f1f4.jpg'
|
|
||||||
)
|
|
||||||
})
|
|
||||||
|
|
||||||
it('can parse response', () => {
|
it('can parse response', () => {
|
||||||
const result = parser({ date, channel, content })
|
const result = parser({ date, channel, content })
|
||||||
expect(result).toMatchObject([
|
expect(result).toMatchObject([
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue