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

View File

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