mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-10 00:50:09 -04:00
Update tests data
This commit is contained in:
parent
54d482269f
commit
4b9d0bd678
3 changed files with 9 additions and 2 deletions
|
@ -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>
|
|
@ -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',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue