mirror of
https://github.com/iptv-org/epg
synced 2025-12-16 10:26:41 -05:00
Update tvheute.at
This commit is contained in:
@@ -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([
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user