Simultaneous fetch is now external package.

Signed-off-by: Toha <tohenk@yahoo.com>
This commit is contained in:
Toha 2024-12-18 17:36:45 +07:00
parent 916b5f5234
commit a5229d3af0
9 changed files with 20 additions and 189 deletions

View file

@ -1,5 +1,5 @@
const dayjs = require('dayjs')
const doFetch = require('../../scripts/core/fetch')
const doFetch = require('@ntlab/sfetch')
const debug = require('debug')('site:tv.yandex.ru')
doFetch
@ -276,7 +276,7 @@ function getQueue(url, referer) {
}
const headers = getHeaders(data)
return {
u: url,
url,
params: { headers }
}
}