|
|
@ -66,14 +66,19 @@ async function checkStatus(playlist) {
|
|
|
|
) {
|
|
|
|
) {
|
|
|
|
results.push(channel)
|
|
|
|
results.push(channel)
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
const response = await instance
|
|
|
|
await instance
|
|
|
|
.get(channel.url)
|
|
|
|
.get(channel.url)
|
|
|
|
|
|
|
|
.then(() => {
|
|
|
|
|
|
|
|
results.push(channel)
|
|
|
|
|
|
|
|
})
|
|
|
|
.then(utils.sleep(config.delay))
|
|
|
|
.then(utils.sleep(config.delay))
|
|
|
|
.catch(err => {})
|
|
|
|
.catch(err => {
|
|
|
|
|
|
|
|
if (err.response && err.response.status === 404) {
|
|
|
|
if (response && response.status === 200) {
|
|
|
|
//console.error(err)
|
|
|
|
results.push(channel)
|
|
|
|
} else {
|
|
|
|
}
|
|
|
|
results.push(channel)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|