Update beinsports.com

This commit is contained in:
Aleksandr Statciuk 2022-02-01 04:15:12 +03:00
parent bb4cdb1e11
commit 1048c57026
2 changed files with 1 additions and 13 deletions

View file

@ -13,11 +13,6 @@ module.exports = {
'YYYY-MM-DD'
)}`
},
logo({ content, channel }) {
const $ = cheerio.load(content)
return $(`#channels_${channel.site_id} .channel img`).attr('src')
},
parser: function ({ content, channel, date }) {
let offset = -1
let programs = []

View file

@ -1,6 +1,6 @@
// npx epg-grabber --config=sites/beinsports.com/beinsports.com.config.js --channels=sites/beinsports.com/beinsports.com_qa.channels.xml --days=2 --output=.gh-pages/guides/qa/beinsports.com.epg.xml
const { parser, url, logo } = require('./beinsports.com.config.js')
const { parser, url } = require('./beinsports.com.config.js')
const dayjs = require('dayjs')
const utc = require('dayjs/plugin/utc')
const customParseFormat = require('dayjs/plugin/customParseFormat')
@ -73,13 +73,6 @@ it('can generate valid url', () => {
)
})
it('can get logo url', () => {
const result = logo({ content, channel })
expect(result).toBe(
'https://assets.bein.com/mena/sites/3/2015/06/bein_SPORTS_FTA_DIGITAL_Mono.png'
)
})
it('can parse response', () => {
const result = parser({ date, channel, content })
expect(result).toMatchObject([