mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-10 00:50:09 -04:00
Update comteco.com.bo
This commit is contained in:
parent
4304b1ecdc
commit
b87540fbdf
2 changed files with 1 additions and 13 deletions
|
@ -27,14 +27,6 @@ module.exports = {
|
|||
return params
|
||||
}
|
||||
},
|
||||
logo: function ({ content }) {
|
||||
const $ = cheerio.load(content)
|
||||
const imgSrc = $('#myform > div.row > div:nth-child(1) > div.col-xs-5.col-sm-7 > img').attr(
|
||||
'src'
|
||||
)
|
||||
|
||||
return imgSrc ? `https://comteco.com.bo${imgSrc}` : null
|
||||
},
|
||||
parser: function ({ content, date }) {
|
||||
const programs = []
|
||||
const items = parseItems(content)
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
// npx epg-grabber --config=sites/comteco.com.bo/comteco.com.bo.config.js --channels=sites/comteco.com.bo/comteco.com.bo_bo.channels.xml --output=.gh-pages/guides/bo/comteco.com.bo.epg.xml --days=2
|
||||
|
||||
const { parser, url, request, logo } = require('./comteco.com.bo.config.js')
|
||||
const { parser, url, request } = require('./comteco.com.bo.config.js')
|
||||
const dayjs = require('dayjs')
|
||||
const utc = require('dayjs/plugin/utc')
|
||||
const customParseFormat = require('dayjs/plugin/customParseFormat')
|
||||
|
@ -37,10 +37,6 @@ it('can generate valid request data', () => {
|
|||
expect(result.get('fechafin')).toBe('25/11/2021')
|
||||
})
|
||||
|
||||
it('can generate valid logo url', () => {
|
||||
expect(logo({ content })).toBe('https://comteco.com.bo/img/upload/canales/abya-yala.png')
|
||||
})
|
||||
|
||||
it('can parse response', () => {
|
||||
const result = parser({ content, channel, date }).map(p => {
|
||||
p.start = p.start.toJSON()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue