diff --git a/sites/cosmote.gr/cosmote.gr.config.js b/sites/cosmote.gr/cosmote.gr.config.js index eb77c5c8..9b803ee0 100644 --- a/sites/cosmote.gr/cosmote.gr.config.js +++ b/sites/cosmote.gr/cosmote.gr.config.js @@ -15,12 +15,6 @@ module.exports = { 'DD-MM-YYYY' )}&_channelprogram_WAR_OTETVportlet_articleTitleUrl=${channel.site_id}` }, - logo: function ({ content }) { - const $ = cheerio.load(content) - const imgSrc = $('img.channel_program-banner').attr('src') - - return imgSrc ? `https://www.cosmote.gr${imgSrc}` : null - }, parser: function ({ date, content }) { let programs = [] const items = parseItems(content) diff --git a/sites/cosmote.gr/cosmote.gr.test.js b/sites/cosmote.gr/cosmote.gr.test.js index bcbe68f2..a5c5980d 100644 --- a/sites/cosmote.gr/cosmote.gr.test.js +++ b/sites/cosmote.gr/cosmote.gr.test.js @@ -1,6 +1,6 @@ // npx epg-grabber --config=sites/cosmote.gr/cosmote.gr.config.js --channels=sites/cosmote.gr/cosmote.gr_gr.channels.xml --output=.gh-pages/guides/gr/cosmote.gr.epg.xml --days=2 -const { parser, url, logo } = require('./cosmote.gr.config.js') +const { parser, url } = require('./cosmote.gr.config.js') const dayjs = require('dayjs') const utc = require('dayjs/plugin/utc') const timezone = require('dayjs/plugin/timezone') @@ -23,12 +23,6 @@ it('can generate valid url', () => { ) }) -it('can generate valid logo url', () => { - expect(logo({ content })).toBe( - 'https://www.cosmote.gr/portal/image/journal/article?img_id=56014332&t=1544180299920' - ) -}) - it('can parse response', () => { const result = parser({ content, channel, date }).map(p => { p.start = p.start.toJSON()