mirror of
https://github.com/iptv-org/iptv
synced 2025-12-16 18:37:17 -05:00
Update update.js
This commit is contained in:
@@ -26,7 +26,9 @@ async function updateStreams(items = [], results = {}, origins = {}) {
|
|||||||
const result = results[item._id]
|
const result = results[item._id]
|
||||||
if (result) {
|
if (result) {
|
||||||
const status = parseStatus(result.error)
|
const status = parseStatus(result.error)
|
||||||
|
if (status) {
|
||||||
stream.set('status', { status })
|
stream.set('status', { status })
|
||||||
|
}
|
||||||
|
|
||||||
if (result.streams.length) {
|
if (result.streams.length) {
|
||||||
const { width, height, bitrate, frame_rate } = parseMediaInfo(result.streams)
|
const { width, height, bitrate, frame_rate } = parseMediaInfo(result.streams)
|
||||||
|
|||||||
Reference in New Issue
Block a user