mirror of
https://github.com/iptv-org/epg
synced 2025-12-16 10:26:41 -05:00
Update /sites
This commit is contained in:
@@ -1,6 +1,4 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<site site="kvf.fo">
|
||||
<channels>
|
||||
<channel lang="fo" xmltv_id="KVFSjonvarp.fo" site_id="#">KVF Sjónvarp</channel>
|
||||
</channels>
|
||||
</site>
|
||||
<channels>
|
||||
<channel site="kvf.fo" lang="fo" xmltv_id="KVFSjonvarp.fo" site_id="#">KVF Sjónvarp</channel>
|
||||
</channels>
|
||||
@@ -1,4 +1,4 @@
|
||||
// npx epg-grabber --config=sites/kvf.fo/kvf.fo.config.js --channels=sites/kvf.fo/kvf.fo.channels.xml --output=guide.xml --days=2
|
||||
// npm run grab -- --site=kvf.fo
|
||||
|
||||
const { parser, url } = require('./kvf.fo.config.js')
|
||||
const fs = require('fs')
|
||||
@@ -30,7 +30,7 @@ it('can parse response', () => {
|
||||
expect(result[2]).toMatchObject({
|
||||
start: '2021-11-21T18:05:00.000Z',
|
||||
stop: '2021-11-21T18:30:00.000Z',
|
||||
title: `Letibygd 13`
|
||||
title: 'Letibygd 13'
|
||||
})
|
||||
})
|
||||
|
||||
@@ -38,7 +38,7 @@ it('can handle empty guide', () => {
|
||||
const result = parser({
|
||||
date,
|
||||
channel,
|
||||
content: `<!DOCTYPE html><html> <head></head> <body></body></html>`
|
||||
content: '<!DOCTYPE html><html> <head></head> <body></body></html>'
|
||||
})
|
||||
expect(result).toMatchObject([])
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user