epg-grabber/tests/input/async.config.js

32 lines
657 B
JavaScript
Raw Normal View History

2021-08-21 18:11:04 +02:00
module.exports = {
site: 'example.com',
2022-06-16 14:07:56 +02:00
channels: 'example.channels.xml',
2021-08-21 18:11:04 +02:00
url() {
return Promise.resolve('http://example.com/20210319/1tv.json')
},
request: {
method: 'POST',
headers() {
return Promise.resolve({
'Content-Type': 'application/json',
Cookie: 'abc=123'
})
},
data() {
return Promise.resolve({ accountID: '123' })
}
},
2021-08-23 12:45:55 +02:00
parser() {
2022-06-16 14:07:56 +02:00
return Promise.resolve([
{
title: 'Program1',
start: 1640995200000,
stop: 1640998800000
}
])
2021-08-23 12:45:55 +02:00
},
logo() {
return Promise.resolve('http://example.com/logos/1TV.png?x=шеллы&sid=777')
}
2021-08-21 18:11:04 +02:00
}