diff --git a/sites/mbc.net/mbc.net.config.js b/sites/mbc.net/mbc.net.config.js index 897f2fe4..bf7f36d5 100644 --- a/sites/mbc.net/mbc.net.config.js +++ b/sites/mbc.net/mbc.net.config.js @@ -8,9 +8,6 @@ module.exports = { .add(1, 'd') .valueOf()}&channel=${channel.site_id}` }, - logo({ channel }) { - return channel.logo - }, parser: function ({ content, channel, date }) { let programs = [] const items = parseItems(content) diff --git a/sites/mbc.net/mbc.net.test.js b/sites/mbc.net/mbc.net.test.js index 0266b3cb..19db1f79 100644 --- a/sites/mbc.net/mbc.net.test.js +++ b/sites/mbc.net/mbc.net.test.js @@ -1,6 +1,6 @@ // npx epg-grabber --config=sites/mbc.net/mbc.net.config.js --channels=sites/mbc.net/mbc.net_ae.channels.xml --output=guide.xml --days=2 -const { parser, url, logo } = require('./mbc.net.config.js') +const { parser, url } = require('./mbc.net.config.js') const dayjs = require('dayjs') const utc = require('dayjs/plugin/utc') const customParseFormat = require('dayjs/plugin/customParseFormat') @@ -10,8 +10,7 @@ dayjs.extend(utc) const date = dayjs.utc('2021-11-06', 'YYYY-MM-DD').startOf('d') const channel = { site_id: 'mbc1', - xmltv_id: 'MBC.ae', - logo: 'https://www.mbc.net/dam/jcr:e5e1ffbc-89b8-4400-951e-624ded8eb350/invalid-name_12@3x.png' + xmltv_id: 'MBC.ae' } const content = `[{"id":3140240,"channelBCMId":"1","channelLabel":"MBC1","showPageTitle":"اختطاف","showPageGenreInArabic":" دراما","showPageAboutInArabic":".يستضيف برنامج تلفزيوني والدة لينا وشقيقتها، ولدى مشاهدتها الحلقة، تكتشف والدة ماجد الحقيقة، بينما تتعرض العنود لحادث سير مروع","startTime":1636155131000,"endTime":1636157806000,"startTimeInMilliseconds":1636155131000,"endTimeInMilliseconds":1636157806200,"premiereMode":"Fast Repeat","showingNow":false}]` @@ -22,13 +21,6 @@ it('can generate valid url', () => { ) }) -it('can get logo url', () => { - const result = logo({ channel }) - expect(result).toBe( - 'https://www.mbc.net/dam/jcr:e5e1ffbc-89b8-4400-951e-624ded8eb350/invalid-name_12@3x.png' - ) -}) - it('can parse response', () => { const result = parser({ date, channel, content }) expect(result).toMatchObject([ diff --git a/sites/mbc.net/mbc.net_ae.channels.xml b/sites/mbc.net/mbc.net_ae.channels.xml index fcb35f30..f0417f20 100644 --- a/sites/mbc.net/mbc.net_ae.channels.xml +++ b/sites/mbc.net/mbc.net_ae.channels.xml @@ -1,22 +1,22 @@ - MBC - MBC 2 - MBC 4 - MBC 5 - MBC Action - MBC Bollywood - MBC Drama - MBC Drama + - MBC Drama USA - MBC Iraq - MBC Maser - MBC Maser 2 - MBC Maser USA - MBC Max - MBC + Power - MBC USA - Wanasah + MBC + MBC 2 + MBC 4 + MBC 5 + MBC Action + MBC Bollywood + MBC Drama + MBC Drama + + MBC Drama USA + MBC Iraq + MBC Maser + MBC Maser 2 + MBC Maser USA + MBC Max + MBC + Power + MBC USA + Wanasah \ No newline at end of file