1
0
mirror of https://github.com/iptv-org/iptv.git synced 2025-06-18 13:01:29 +08:00

Update update.js

This commit is contained in:
Aleksandr Statciuk 2023-02-03 06:28:04 +03:00
parent afae713136
commit 744f17bd8f

View File

@ -26,7 +26,9 @@ async function updateStreams(items = [], results = {}, origins = {}) {
const result = results[item._id]
if (result) {
const status = parseStatus(result.error)
stream.set('status', { status })
if (status) {
stream.set('status', { status })
}
if (result.streams.length) {
const { width, height, bitrate, frame_rate } = parseMediaInfo(result.streams)