mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-10 00:50:09 -04:00
Simultaneous fetch is now external package.
Signed-off-by: Toha <tohenk@yahoo.com>
This commit is contained in:
parent
916b5f5234
commit
a5229d3af0
9 changed files with 20 additions and 189 deletions
|
@ -4,7 +4,7 @@ const dayjs = require('dayjs')
|
|||
const timezone = require('dayjs/plugin/timezone')
|
||||
const utc = require('dayjs/plugin/utc')
|
||||
const customParseFormat = require('dayjs/plugin/customParseFormat')
|
||||
const doFetch = require('../../scripts/core/fetch')
|
||||
const doFetch = require('@ntlab/sfetch')
|
||||
const debug = require('debug')('site:rotana.net')
|
||||
|
||||
dayjs.extend(timezone)
|
||||
|
@ -50,7 +50,7 @@ module.exports = {
|
|||
cookie: cookies[channel.lang],
|
||||
}
|
||||
}
|
||||
queues.push({ i: item, u: url, params })
|
||||
queues.push({ i: item, url, params })
|
||||
}
|
||||
await doFetch(queues, (queue, res) => {
|
||||
programs.push(parseProgram(queue.i, res))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue