mirror of
https://github.com/iptv-org/epg
synced 2026-09-10 22:06:56 -04:00
Update /sites
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
// npm run channels:parse -- --config=./sites/tvmusor.hu/tvmusor.hu.config.js --output=./sites/tvmusor.hu/tvmusor.hu.channels.xml
|
||||
// npx epg-grabber --config=sites/tvmusor.hu/tvmusor.hu.config.js --channels=sites/tvmusor.hu/tvmusor.hu.channels.xml --output=guide.xml --days=2
|
||||
// npm run grab -- --site=tvmusor.hu
|
||||
|
||||
const { parser, url, request } = require('./tvmusor.hu.config.js')
|
||||
const fs = require('fs')
|
||||
@@ -47,7 +47,7 @@ it('can parse response', () => {
|
||||
expect(results[0]).toMatchObject({
|
||||
start: '2022-11-18T23:30:00.000Z',
|
||||
stop: '2022-11-19T00:55:00.000Z',
|
||||
title: `Rövidpályás Úszó Országos Bajnokság`,
|
||||
title: 'Rövidpályás Úszó Országos Bajnokság',
|
||||
category: 'sportműsor',
|
||||
description: 'Forma-1 magazin. Hírek, információk, érdekességek a Forma-1 világából.',
|
||||
icon: 'http://www.tvmusor.hu/images/events/408/f1e45193930943d9ee29769e0afa902aff0e4a90-better-call-saul.jpg'
|
||||
@@ -56,7 +56,7 @@ it('can parse response', () => {
|
||||
expect(results[1]).toMatchObject({
|
||||
start: '2022-11-19T00:55:00.000Z',
|
||||
stop: '2022-11-19T01:10:00.000Z',
|
||||
title: `Sportlövészet`,
|
||||
title: 'Sportlövészet',
|
||||
category: 'sportműsor'
|
||||
})
|
||||
})
|
||||
@@ -65,7 +65,7 @@ it('can handle empty guide', () => {
|
||||
const result = parser({
|
||||
date,
|
||||
channel,
|
||||
content: `{"status":"error","reason":"invalid blocks"}`
|
||||
content: '{"status":"error","reason":"invalid blocks"}'
|
||||
})
|
||||
expect(result).toMatchObject([])
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user