From b87540fbdf1bf00849703e3692a47a5f6b78e188 Mon Sep 17 00:00:00 2001 From: Aleksandr Statciuk Date: Tue, 1 Feb 2022 04:48:01 +0300 Subject: [PATCH] Update comteco.com.bo --- sites/comteco.com.bo/comteco.com.bo.config.js | 8 -------- sites/comteco.com.bo/comteco.com.bo.test.js | 6 +----- 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/sites/comteco.com.bo/comteco.com.bo.config.js b/sites/comteco.com.bo/comteco.com.bo.config.js index c4d1e8f2..0807c578 100644 --- a/sites/comteco.com.bo/comteco.com.bo.config.js +++ b/sites/comteco.com.bo/comteco.com.bo.config.js @@ -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) diff --git a/sites/comteco.com.bo/comteco.com.bo.test.js b/sites/comteco.com.bo/comteco.com.bo.test.js index e1c02c3d..e9ff896e 100644 --- a/sites/comteco.com.bo/comteco.com.bo.test.js +++ b/sites/comteco.com.bo/comteco.com.bo.test.js @@ -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()