mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-10 00:50:09 -04:00
Update tvheute.at
This commit is contained in:
parent
98230bef9c
commit
a2aafd65ef
2 changed files with 1 additions and 11 deletions
|
@ -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)
|
||||
|
|
|
@ -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([
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue