mirror of
https://github.com/iptv-org/epg
synced 2026-05-02 07:26:58 -04:00
Update /sites
This commit is contained in:
@@ -1,10 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<site site="virginmediatelevision.ie">
|
||||
<channels>
|
||||
<channel lang="en" xmltv_id="VirginMediaOne.ie" site_id="one">One</channel>
|
||||
<channel lang="en" xmltv_id="VirginMediaTwo.ie" site_id="two">Two</channel>
|
||||
<channel lang="en" xmltv_id="VirginMediaThree.ie" site_id="three">Three</channel>
|
||||
<channel lang="en" xmltv_id="VirginMediaFour.ie" site_id="vm_four">Four</channel>
|
||||
<channel lang="en" xmltv_id="VirginMediaMore.ie" site_id="vm_more">More</channel>
|
||||
</channels>
|
||||
</site>
|
||||
<channels>
|
||||
<channel site="virginmediatelevision.ie" lang="en" xmltv_id="VirginMediaFour.ie" site_id="vm_four">Four</channel>
|
||||
<channel site="virginmediatelevision.ie" lang="en" xmltv_id="VirginMediaMore.ie" site_id="vm_more">More</channel>
|
||||
<channel site="virginmediatelevision.ie" lang="en" xmltv_id="VirginMediaOne.ie" site_id="one">One</channel>
|
||||
<channel site="virginmediatelevision.ie" lang="en" xmltv_id="VirginMediaThree.ie" site_id="three">Three</channel>
|
||||
<channel site="virginmediatelevision.ie" lang="en" xmltv_id="VirginMediaTwo.ie" site_id="two">Two</channel>
|
||||
</channels>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// npx epg-grabber --config=sites/virginmediatelevision.ie/virginmediatelevision.ie.config.js --channels=sites/virginmediatelevision.ie/virginmediatelevision.ie.channels.xml --output=guide.xml --days=2
|
||||
// npm run grab -- --site=virginmediatelevision.ie
|
||||
|
||||
const { parser, url } = require('./virginmediatelevision.ie.config.js')
|
||||
const fs = require('fs')
|
||||
@@ -34,9 +34,10 @@ it('can parse response', () => {
|
||||
expect(results[0]).toMatchObject({
|
||||
start: '2023-01-31T00:00:00.000Z',
|
||||
stop: '2023-01-31T01:00:00.000Z',
|
||||
title: `Chasing Shadows`,
|
||||
title: 'Chasing Shadows',
|
||||
sub_title: '',
|
||||
description: `A detective sergeant and expert in the field of serial killers working for the Missing Persons Bureau tries to protect the general public from evil.`,
|
||||
description:
|
||||
'A detective sergeant and expert in the field of serial killers working for the Missing Persons Bureau tries to protect the general public from evil.',
|
||||
icon: 'https://bcboltvirgin.akamaized.net/player/shows/1498_517x291_1528141264.jpg'
|
||||
})
|
||||
})
|
||||
@@ -45,7 +46,7 @@ it('can handle empty guide', () => {
|
||||
const results = parser({
|
||||
date,
|
||||
channel,
|
||||
content: `<!DOCTYPE html><html><head></head><body></body></html>`
|
||||
content: '<!DOCTYPE html><html><head></head><body></body></html>'
|
||||
})
|
||||
|
||||
expect(results).toMatchObject([])
|
||||
|
||||
Reference in New Issue
Block a user