Update tests data

This commit is contained in:
freearhey 2023-09-19 06:15:48 +03:00
parent 54d482269f
commit 4b9d0bd678
3 changed files with 9 additions and 2 deletions

View file

@ -2,6 +2,7 @@
<site site="example.com">
<channels>
<channel lang="en" xmltv_id="Channel1.us" site_id="140">Channel 1</channel>
<channel lang="en" xmltv_id="Channel2.us" site_id="142">Channel 2</channel>
<channel lang="fr" xmltv_id="Channel1.us" site_id="140">Channel 1</channel>
</channels>
</site>

View file

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