From a9ea96f460b29003cd269919535af21493875207 Mon Sep 17 00:00:00 2001 From: Aleksandr Statciuk Date: Tue, 1 Feb 2022 04:53:20 +0300 Subject: [PATCH] Update dsmart.com.tr --- sites/dsmart.com.tr/dsmart.com.tr.config.js | 5 ----- sites/dsmart.com.tr/dsmart.com.tr.test.js | 8 +------- 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/sites/dsmart.com.tr/dsmart.com.tr.config.js b/sites/dsmart.com.tr/dsmart.com.tr.config.js index 7c0c87ab..397eaaa3 100644 --- a/sites/dsmart.com.tr/dsmart.com.tr.config.js +++ b/sites/dsmart.com.tr/dsmart.com.tr.config.js @@ -10,11 +10,6 @@ module.exports = { 'YYYY-MM-DD' )}` }, - logo({ content, channel }) { - const data = parseContent(content, channel) - - return data && data.logo ? `https://www.dsmart.com.tr/epg/images/0x50/${data.logo}` : null - }, parser: function ({ content, channel, date }) { let offset = -1 let programs = [] diff --git a/sites/dsmart.com.tr/dsmart.com.tr.test.js b/sites/dsmart.com.tr/dsmart.com.tr.test.js index 5753f2e1..201d6a5c 100644 --- a/sites/dsmart.com.tr/dsmart.com.tr.test.js +++ b/sites/dsmart.com.tr/dsmart.com.tr.test.js @@ -1,6 +1,6 @@ // npx epg-grabber --config=sites/dsmart.com.tr/dsmart.com.tr.config.js --channels=sites/dsmart.com.tr/dsmart.com.tr_tr.channels.xml --output=guide.xml --timeout=30000 --days=2 -const { parser, url, logo } = require('./dsmart.com.tr.config.js') +const { parser, url } = require('./dsmart.com.tr.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 get logo url', () => { - expect(logo({ content, channel })).toBe( - 'https://www.dsmart.com.tr/epg/images/0x50/59f97253cfef0b75f4723ded' - ) -}) - it('can parse response', () => { const result = parser({ date, channel, content }) expect(result).toMatchObject([