From a99b4ea7a513c14963d68b4b3716d306d60bbd42 Mon Sep 17 00:00:00 2001 From: Aleksandr Statciuk Date: Tue, 1 Feb 2022 05:21:48 +0300 Subject: [PATCH] Update ontvtonight.com --- sites/ontvtonight.com/ontvtonight.com.config.js | 8 -------- sites/ontvtonight.com/ontvtonight.com.test.js | 8 +------- 2 files changed, 1 insertion(+), 15 deletions(-) diff --git a/sites/ontvtonight.com/ontvtonight.com.config.js b/sites/ontvtonight.com/ontvtonight.com.config.js index a3edf2c6..529e4125 100644 --- a/sites/ontvtonight.com/ontvtonight.com.config.js +++ b/sites/ontvtonight.com/ontvtonight.com.config.js @@ -24,14 +24,6 @@ module.exports = { return url }, - logo: function ({ content }) { - const $ = cheerio.load(content) - const imgSrc = $( - '#content > div > div > div.span6 > img,#inner-headline > div > div > div > img' - ).attr('src') - - return imgSrc || null - }, parser: function ({ content, date, channel }) { const programs = [] const items = parseItems(content) diff --git a/sites/ontvtonight.com/ontvtonight.com.test.js b/sites/ontvtonight.com/ontvtonight.com.test.js index 1807ffb7..6889bfd2 100644 --- a/sites/ontvtonight.com/ontvtonight.com.test.js +++ b/sites/ontvtonight.com/ontvtonight.com.test.js @@ -1,6 +1,6 @@ // npx epg-grabber --config=sites/ontvtonight.com/ontvtonight.com.config.js --channels=sites/ontvtonight.com/ontvtonight.com_au.channels.xml --output=.gh-pages/guides/au/ontvtonight.com.epg.xml --days=2 -const { parser, url, logo } = require('./ontvtonight.com.config.js') +const { parser, url } = require('./ontvtonight.com.config.js') const dayjs = require('dayjs') const utc = require('dayjs/plugin/utc') const customParseFormat = require('dayjs/plugin/customParseFormat') @@ -20,12 +20,6 @@ it('can generate valid url', () => { ) }) -it('can generate valid logo url', () => { - expect(logo({ content })).toBe( - 'https://otv-us-web.s3-us-west-2.amazonaws.com/logos/guide/media/ed49cf4f-1123-4bee-9c90-a6af375af310.png' - ) -}) - it('can parse response', () => { const result = parser({ content, channel, date }).map(p => { p.start = p.start.toJSON()