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,4 +1,4 @@
// npx epg-grabber --config=sites/getafteritmedia.com/getafteritmedia.com.config.js --channels=sites/getafteritmedia.com/getafteritmedia.com.channels.xml --output=guide.xml --days=2
// npm run grab -- --site=getafteritmedia.com
const { parser, url } = require('./getafteritmedia.com.config.js')
const fs = require('fs')
@ -33,7 +33,7 @@ it('can parse response', () => {
expect(results[0]).toMatchObject({
start: '2022-11-26T05:00:00.000Z',
stop: '2022-11-26T05:30:00.000Z',
title: `The Appraisers`
title: 'The Appraisers'
})
})
@ -41,7 +41,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([])
})