Update rtb.gov.bn

This commit is contained in:
Aleksandr Statciuk
2022-02-01 05:33:05 +03:00
parent 3a6e5cf975
commit 271c910b62
3 changed files with 5 additions and 15 deletions

View File

@@ -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'),