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
|
||||
}
|
||||
},
|
||||
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 }) {
|
||||
let programs = []
|
||||
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
|
||||
|
||||
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 utc = require('dayjs/plugin/utc')
|
||||
const customParseFormat = require('dayjs/plugin/customParseFormat')
|
||||
|
@ -32,12 +32,6 @@ it('can generate valid request data', () => {
|
|||
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', () => {
|
||||
const result = parser({ date, channel, content })
|
||||
expect(result).toMatchObject([
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue