mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-11 09:30:06 -04:00
wip
This commit is contained in:
parent
6e4add9c92
commit
d150aac408
10 changed files with 8241 additions and 200 deletions
|
@ -40,6 +40,7 @@ async function main() {
|
|||
dates.forEach(date => {
|
||||
requests.push({
|
||||
url: site.url({ date, channel }),
|
||||
date,
|
||||
channel
|
||||
})
|
||||
})
|
||||
|
@ -54,7 +55,11 @@ async function main() {
|
|||
const site = sites[channel.site]
|
||||
console.log(`${channel.site} - ${channel.xmltv_id}`)
|
||||
|
||||
return site.parser({ channel, content: response.data })
|
||||
return site.parser({
|
||||
channel,
|
||||
content: response.data,
|
||||
date: request.date
|
||||
})
|
||||
})
|
||||
.then(utils.sleep(3000))
|
||||
.catch(console.log)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue