Update tvheute.at

This commit is contained in:
Aleksandr Statciuk 2022-02-01 05:51:38 +03:00
parent 98230bef9c
commit a2aafd65ef
2 changed files with 1 additions and 11 deletions

View file

@ -8,12 +8,6 @@ module.exports = {
'DD-MM-YYYY'
)}`
},
logo({ content }) {
const $ = cheerio.load(content)
const imgSrc = $(`.station-info .logo`).attr('src')
return imgSrc ? `https://tvheute.at${imgSrc}` : null
},
parser: function ({ content, channel, date }) {
let programs = []
const items = parseItems(content)

View file

@ -1,6 +1,6 @@
// npx epg-grabber --config=sites/tvheute.at/tvheute.at.config.js --channels=sites/tvheute.at/tvheute.at_at.channels.xml --output=.gh-pages/guides/at/tvheute.at.epg.xml --days=2
const { parser, url, logo, request } = require('./tvheute.at.config.js')
const { parser, url, request } = require('./tvheute.at.config.js')
const dayjs = require('dayjs')
const utc = require('dayjs/plugin/utc')
const customParseFormat = require('dayjs/plugin/customParseFormat')
@ -19,10 +19,6 @@ it('can generate valid url', () => {
)
})
it('can get logo url', () => {
expect(logo({ content })).toBe('https://tvheute.at/images/channels/ORF1--1394099696-01.png')
})
it('can parse response', () => {
expect(parser({ date, channel, content })).toMatchObject([
{