mirror of
https://github.com/iptv-org/epg
synced 2025-12-16 18:37:01 -05:00
wip
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user