diff --git a/tests/__data__/expected/guides/en/example.com.xml b/tests/__data__/expected/guides/en/example.com.xml index 0f94474c..e99bf680 100644 --- a/tests/__data__/expected/guides/en/example.com.xml +++ b/tests/__data__/expected/guides/en/example.com.xml @@ -1,4 +1,5 @@ Channel 1https://example.com +Channel 2https://example.com Program1 \ No newline at end of file diff --git a/tests/__data__/input/sites/epg-grab/epg-grab.channels.xml b/tests/__data__/input/sites/epg-grab/epg-grab.channels.xml index 561ce412..75fa7c3c 100644 --- a/tests/__data__/input/sites/epg-grab/epg-grab.channels.xml +++ b/tests/__data__/input/sites/epg-grab/epg-grab.channels.xml @@ -2,6 +2,7 @@ Channel 1 + Channel 2 Channel 1 \ No newline at end of file diff --git a/tests/__data__/input/sites/epg-grab/epg-grab.config.js b/tests/__data__/input/sites/epg-grab/epg-grab.config.js index 493907db..dca7aeea 100644 --- a/tests/__data__/input/sites/epg-grab/epg-grab.config.js +++ b/tests/__data__/input/sites/epg-grab/epg-grab.config.js @@ -1,10 +1,15 @@ module.exports = { site: 'example.com', - days: 2, + days: 1, + request: { + timeout: 1000 + }, url() { return `https://example.com` }, - parser() { + parser({ channel }) { + if (channel.xmltv_id === 'Channel2.us') return [] + return [ { title: 'Program1',