Update format.js
This commit is contained in:
parent
0890ef74a9
commit
dda70dba5c
@ -95,8 +95,10 @@ async function detectResolution(playlist) {
|
|||||||
|
|
||||||
const response = await instance
|
const response = await instance
|
||||||
.get(channel.url, { cancelToken: source.token })
|
.get(channel.url, { cancelToken: source.token })
|
||||||
.then(() => {
|
.then(res => {
|
||||||
clearTimeout(timeout)
|
clearTimeout(timeout)
|
||||||
|
|
||||||
|
return res
|
||||||
})
|
})
|
||||||
.then(utils.sleep(config.delay))
|
.then(utils.sleep(config.delay))
|
||||||
.catch(err => {
|
.catch(err => {
|
||||||
|
Loading…
Reference in New Issue
Block a user