From 271c910b624378fad41e0f5763c2d57503643b0a Mon Sep 17 00:00:00 2001 From: Aleksandr Statciuk Date: Tue, 1 Feb 2022 05:33:05 +0300 Subject: [PATCH] Update rtb.gov.bn --- sites/rtb.gov.bn/rtb.gov.bn.config.js | 3 --- sites/rtb.gov.bn/rtb.gov.bn.test.js | 11 ++--------- sites/rtb.gov.bn/rtb.gov.bn_bn.channels.xml | 6 +++--- 3 files changed, 5 insertions(+), 15 deletions(-) diff --git a/sites/rtb.gov.bn/rtb.gov.bn.config.js b/sites/rtb.gov.bn/rtb.gov.bn.config.js index 62a705e0..68036d06 100644 --- a/sites/rtb.gov.bn/rtb.gov.bn.config.js +++ b/sites/rtb.gov.bn/rtb.gov.bn.config.js @@ -20,9 +20,6 @@ module.exports = { } ${date.format('DD MMMM YYYY')}.pdf` ) }, - logo({ channel }) { - return channel.logo - }, parser: async function ({ buffer, date }) { let programs = [] const items = await parseItems(buffer) diff --git a/sites/rtb.gov.bn/rtb.gov.bn.test.js b/sites/rtb.gov.bn/rtb.gov.bn.test.js index 2f31c19b..75c4bb76 100644 --- a/sites/rtb.gov.bn/rtb.gov.bn.test.js +++ b/sites/rtb.gov.bn/rtb.gov.bn.test.js @@ -1,6 +1,6 @@ // npx epg-grabber --config=sites/rtb.gov.bn/rtb.gov.bn.config.js --channels=sites/rtb.gov.bn/rtb.gov.bn_bn.channels.xml --output=.gh-pages/guides/bn/rtb.gov.bn.epg.xml --days=2 -const { parser, url, logo } = require('./rtb.gov.bn.config.js') +const { parser, url } = require('./rtb.gov.bn.config.js') const path = require('path') const fs = require('fs') const dayjs = require('dayjs') @@ -12,8 +12,7 @@ dayjs.extend(utc) const date = dayjs.utc('2021-11-11', 'YYYY-MM-DD').startOf('d') const channel = { site_id: 'Sukmaindera', - xmltv_id: 'RTBSukmaindera.bn', - logo: 'http://www.rtb.gov.bn/SiteAssets/SitePages/TV%20Programme%20Division/LOGO%20RTB%20SUKMAINDERA.png' + xmltv_id: 'RTBSukmaindera.bn' } it('can generate valid url', () => { @@ -22,12 +21,6 @@ it('can generate valid url', () => { ) }) -it('can get logo url', () => { - expect(logo({ channel })).toBe( - 'http://www.rtb.gov.bn/SiteAssets/SitePages/TV%20Programme%20Division/LOGO%20RTB%20SUKMAINDERA.png' - ) -}) - it('can parse Sukmaindera 11 November 2021.pdf', done => { const buffer = fs.readFileSync( path.resolve(__dirname, '__data__/Sukmaindera 11 November 2021.pdf'), diff --git a/sites/rtb.gov.bn/rtb.gov.bn_bn.channels.xml b/sites/rtb.gov.bn/rtb.gov.bn_bn.channels.xml index 1f7d8dba..7d6dc71e 100644 --- a/sites/rtb.gov.bn/rtb.gov.bn_bn.channels.xml +++ b/sites/rtb.gov.bn/rtb.gov.bn_bn.channels.xml @@ -1,8 +1,8 @@ - RTB Aneka - RTB Perdana - RTB Sukmaindera + RTB Aneka + RTB Perdana + RTB Sukmaindera \ No newline at end of file