Update format.js

This commit is contained in:
Aleksandr Statciuk 2021-08-10 03:47:11 +03:00
parent d9f1008f96
commit d160458642
1 changed files with 2 additions and 2 deletions

View File

@ -72,12 +72,12 @@ async function updatePlaylist(playlist) {
if (config.status) updateStatus(channel, null)
if (config.resolution) updateResolution(channel, result.status.metadata)
} else {
if (config.debug) log.print(` ${channel.url} (${result.status.reason})\n`)
if (config.debug) log.print(` ERR: ${channel.url} (${result.status.reason})\n`)
if (config.status) updateStatus(channel, 'Offline')
}
})
.catch(err => {
if (config.debug) log.print(` ${channel.url} (${err.message})\n`)
if (config.debug) log.print(` ERR: ${channel.url} (${err.message})\n`)
})
}
if (!config.debug) bar.tick()