diff --git a/sites/gatotv.com/gatotv.com.config.js b/sites/gatotv.com/gatotv.com.config.js index da19daae..0d32a7ad 100644 --- a/sites/gatotv.com/gatotv.com.config.js +++ b/sites/gatotv.com/gatotv.com.config.js @@ -12,11 +12,6 @@ module.exports = { url: function ({ channel, date }) { return `https://www.gatotv.com/canal/${channel.site_id}/${date.format('YYYY-MM-DD')}` }, - logo({ content }) { - const $ = cheerio.load(content) - - return $('.div_MainPicture img').attr('src') - }, parser: function ({ content, date }) { let programs = [] const items = parseItems(content) diff --git a/sites/gatotv.com/gatotv.com.test.js b/sites/gatotv.com/gatotv.com.test.js index 69d02642..3bb20faa 100644 --- a/sites/gatotv.com/gatotv.com.test.js +++ b/sites/gatotv.com/gatotv.com.test.js @@ -1,7 +1,7 @@ // node ./scripts/channels.js --config=./sites/gatotv.com/gatotv.com.config.js --output=./sites/gatotv.com/gatotv.com_cr.channels.xml --set=country:costa_rica // npx epg-grabber --config=sites/gatotv.com/gatotv.com.config.js --channels=sites/gatotv.com/gatotv.com_ar.channels.xml --output=.gh-pages/guides/ar/gatotv.com.epg.xml --days=2 -const { parser, url, request, logo } = require('./gatotv.com.config.js') +const { parser, url, request } = require('./gatotv.com.config.js') const dayjs = require('dayjs') const utc = require('dayjs/plugin/utc') const customParseFormat = require('dayjs/plugin/customParseFormat') @@ -19,12 +19,6 @@ it('can generate valid url', () => { expect(url({ channel, date })).toBe('https://www.gatotv.com/canal/13_de_argentina/2021-11-13') }) -it('can get logo url', () => { - expect(logo({ content })).toBe( - 'https://imagenes.gatotv.com/logos/canales/oscuros/13_de_argentina-mediano.png' - ) -}) - it('can parse response', () => { const result = parser({ date, channel, content }).map(p => { p.start = p.start.toJSON()