Update /sites

This commit is contained in:
freearhey
2023-10-02 06:35:33 +03:00
parent ca254a6df0
commit c0cfcf7a47
543 changed files with 30781 additions and 31187 deletions

View File

@@ -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>

View File

@@ -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([])